Hi,
is there any way to convert the mail content, including attachments, from the com.fsck.k9.mail.internet.MimeMessage class to the javax.mail.internet.MimeMessage class? They seem to be similar. I tried it with piped streams, but without success. Here is what I did:
com.fsck.k9.mail.internet.MimeMessage message;
PipedInputStream in = new PipedInputStream(1024);
PipedOutputStream out = new PipedOutputStream(in);
javax.mail.internet.MimeMessage mm = new javax.mail.internet.MimeMessage(session, in);
message.getBody().writeTo(out);
Has anyone any clues what is wrong about this code, or is there a better solution for my problem?
Regards