JavaMail decodes quoted printable incorrectly
843830Aug 17 2006 — edited Feb 23 2007Hi,
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?