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!

JavaMail decodes quoted printable incorrectly

843830Aug 17 2006 — edited Feb 23 2007
Hi,

I have a MIME / Multipart message whose content has been encoded as Content-Type: application/ms-tnef;
name="winmail.dat"and
Content-Transfer-Encoding: quoted-printable

This message originated in a windows system.

This message is in a POP3 server.Now i am trying to retrieve this mail from the server into a Unix environment using folder.getMessages() . Now when i see this retrieved message, it is different from the original message that was in the server. can anyone please tell me why?

Further, if i print the original message (the one in the server) as an input stream in the VI editor(unix), it is the same as in seen in the windows environmen. However if i print it as a byteArray, i see ^M characters appended at the end of every sentence. The same is the case with the message which is retireved with folder.getMessages().

can anyone please give me an answer to these questions? is javm,ail tryng to decode the quoted printable and decoding it incorrectly because of the ^M characters?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 23 2007
Added on Aug 17 2006
13 comments
1,004 views