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!

Unable to load BODYSTRUCTURE exception with an email containing an .eml file sent using Thunderbird

Saqib AliAug 7 2013 — edited Aug 9 2013

We have an application that accesses an Gmail account (IMAP) using Java Mail API. Works fine for all types of emails except for a message that contains an .eml file as attachment and the message is sent using Thunderbird.

Here is the exception stack trace when trying to retrieve that message .

    Caused by: com.google.code.javax.mail.MessagingException: Unable to load BODYSTRUCTURE

            at com.google.code.com.sun.mail.imap.IMAPMessage.loadBODYSTRUCTURE(IMAPMessage.java:1377)

            at com.google.code.com.sun.mail.imap.IMAPMessage.getContentType(IMAPMessage.java:492)

Please advise. Thanks

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 6 2013
Added on Aug 7 2013
1 comment
2,143 views