Trying to get attached Message (rfc822) from email
843834Apr 28 2008 — edited Apr 28 2008When 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