How to get "real" message source?
843830Sep 20 2006 — edited Oct 10 2006Hello all!
Is it possible to get the "real" message source from a message (as javamail read it from the server)?
I know about this:
ByteArrayOutputStream baos = new ByteArrayOutputStream();
message.writeTo(baos);
return(baos.toString());
but according to the javadoc, MimeMessage will "Output the message as an RFC 822 format stream".
Doesn't this mean that maybe the result is not the same as the Message on the server? Not good if there's an error in the message source and the MimeMessage "formats" it away!??
Thanks a lot in advance for any hint!
Grets
lotk