Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Trying to get attached Message (rfc822) from email

843834Apr 28 2008 — edited Apr 28 2008
When parsing a received email message, I can determine that a MessagePart has the MimeType == "message/rfc822". I have a few questions about parsing this "part"...

1) Why is the actual part's class a "IMAPBodyPart", when this is nowhere to be found in the javadocs???

2) I want to get the headers of the this attached email. I see it has a "message" component (IMAPMessage class -- also no references in the javadocs). How do I get this, or what is the best way to get the "envelope information" from this part?

If possible, I'd like to keep the IMAP-specific classes out of it, in case I go to POP3 somewhere. Is there a superclass that I could use to do all this (MimePart or MimeMessage or something)???

Thanks!
-AJ
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 26 2008
Added on Apr 28 2008
4 comments
564 views