?
Solved

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

Posted on 2010-11-28
5
Medium Priority
?
417 Views
Last Modified: 2013-11-19
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
Comment
Question by:amirsky
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
5 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 34225351
0
 

Author Comment

by:amirsky
ID: 34225372
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
 
LVL 86

Expert Comment

by:CEHJ
ID: 34225374
Yes, that could easily be too naive. You might need to perform further tests
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 2000 total points
ID: 34225384
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 34225586
:)
0

Featured Post

The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
The viewer will learn how to implement Singleton Design Pattern in Java.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question