wood burning stoves 2.0*
The moose likes Other JSE/JEE APIs and the fly likes Read both header and body in one call using java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Read both header and body in one call using java" Watch "Read both header and body in one call using java" New topic
Author

Read both header and body in one call using java

Raaghu Kannan
Greenhorn

Joined: Aug 19, 2011
Posts: 8
0 down vote favorite


I have a mail reader class which sets the FetchProfile and later does a msg.getContent. I want to do both reading of header and content in one call, basically download the full mail in one call. Because I have observed msg.getcontent makes a call to the server to get the body/content , if we can download the full mail in one call, a call to the server can be saved.

Is this possible?

The code is similar to this



Appreciate any help.

Thanks and Regards
Raaghu.K
 
Don't get me started about those stupid light bulbs.
 
subject: Read both header and body in one call using java
 
Similar Threads
How to properly read the custom Header value in the E-mail envolope
Java Mail API and Exchange 2003
Java Mail API and Exchange 2003
JavaMail is too verbose
javax.email and getting message body text of multipart msg...