• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 420
  • Last Modified:

Is there a way in JavaMail to get only messages that have an Attachment?

Hey I am new to JavaMail and have an issue that I only want to fetch emails that have an attachment. Is there a way to do that without having to download and parse the parts to all new messages? (for POP3 and IMAP)?
0
amirsky
Asked:
amirsky
  • 4
1 Solution
 
amirskyAuthor Commented:
Interesting, but is having a type 'multipart/*' and a part count > 0 really a garuntee that there are FILE attachments? Couldn't there just be more than one INLINE text or such?
0
 
CEHJCommented:
Yes, that could easily be too naive. You might need to perform further tests
0
 
CEHJCommented:
:)
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now