Error in BODYSTRUCTURE processing? (Full Version)

All Forums >> [Microsoft Exchange 2007] >> Compliance



Message


apph -> Error in BODYSTRUCTURE processing? (7.Sep.2011 4:36:29 PM)

Hello,
I have exchange mailbox with IMAP support enabled. When I'm trying to connect to this mailbox using Java, I sometimes get errors. The error occurs when incoming email contain information about certificate. If I will turn signing off my e-mail messages it will process messasges just fine (this is not an option for us in final solution).
The error is:
 
javax.mail.MessagingException: Unable to load BODYSTRUCTURE
 at com.sun.mail.imap.IMAPMessage.loadBODYSTRUCTURE(IMAPMessage.java:1280)
 at com.sun.mail.imap.IMAPMessage.getContentType(IMAPMessage.java:443)
 at javax.mail.internet.MimeBodyPart.isMimeType(MimeBodyPart.java:1059)
 at javax.mail.internet.MimeMessage.isMimeType(MimeMessage.java:965)
 
 
and the body structure is as follows:
 
(BODYSTRUCTURE (("text" "html" ("charset" "us-ascii") NIL NIL "quoted-printable" 2634 58 NIL NIL NIL NIL)
("message" "delivery-status" NIL NIL NIL "7BIT" 512 NIL NIL NIL NIL) ("message" "rfc822" NIL NIL NIL "7BIT" 14874 
("Wed, 7 Sep 2011 11:11:00 +0200" "Subject - nr 00000001 / C-858 -" (("email.account" NIL "email.account" "some.server")) 
NIL (("email.account" NIL "email.account" "some.server")) (("some.account@gmail.com" NIL "some.account" "gmail.com")) 
NIL NIL NIL "<2101883720.77.1315386660534.JavaMail.root@mail.server.host>") 
("multipart" "signed" ("protocol" "application/pkcs7-signature" "micalg" "sha1" "boundary" "----=_Part_76_1396430248.1315386660525") NIL NIL "7BIT" -1 NIL NIL NIL NIL) 252 NIL NIL NIL NIL) 
 "report" ("boundary" "_000_ee202742dd1c42508e093bd2e5968da7_" "report-type" "delivery-status") NIL "en-US"))
 
 
The interesting part here is this fragment:
 
("multipart" "signed" ("protocol" "application/pkcs7-signature" "micalg" "sha1" "boundary" "----=_Part_76_1396430248.1315386660525") NIL NIL "7BIT" -1 NIL NIL NIL NIL) 252 NIL NIL NIL NIL) 
  "report" ("boundary" "_000_ee202742dd1c42508e093bd2e5968da7_" "report-type" "delivery-status") NIL "en-US"))
 
 
It is just the same situation as described here:
https://forums.oracle.com/forums/thread.jspa?threadID=1587098
According to this information, it is a bug in Exchange.
Unfortunately the workaround with additional Java processing is not an option for us.
 
So I have a few questions:
- is there any fix to this problem (I have done some research through Microsoft Suppor Knowledge Base and found some     problems related with BODYSTRUCTURE, but nothing related to my case) ?
- if no solution yet, is there any workaround?
 
Regards
Krzysiek




Page: [1]