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!

Differences in the message id between IMAPMessage and MimeMessage

977393Dec 1 2012 — edited Dec 6 2012
Hi,
When I'm getting IMAPMessage from the IMAP server and calling getMessageID() I got next id (for the privacy reasons it not real, but reproduce the differences) :
<20060421154815.XPTL8241.fed1rmmtao11.host.net@xxx.yy.www.q>

Then, when I saved this message to the disk and read it as MimeMessage and calling getMessageID() I got this :
<20060421154815.XPTL8241.fed1rmmtao11.host.net@[xxx.yy.www.q]>

As you can see the difference is in [] for the string after @.

What could cause to such behavior ?

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 3 2013
Added on Dec 1 2012
13 comments
6,089 views