I solved the problem the following way:
com.fsck.k9.mail.internet.MimeMessage message;
javax.mail.internet.MimeMessage mm = null;
Properties prop = System.getProperties();
Session sess = Session.getDefaultInstance(prop, null);
try {
ByteArrayOutputStream out = new ByteArrayOutputStream();
message.writeTo(out);
byte[] ba = out.toByteArray();
ByteArrayInputStream in = new ByteArrayInputStream(ba);
mm = new javax.mail.internet.MimeMessage(sess, in);
out.close();
in.close();
} catch (IOException ex) {
ex.printStackTrace();
} catch (MessagingException e) {
e.printStackTrace();
} catch (javax.mail.MessagingException e) {
e.printStackTrace();
}
Regards
--
--
You received this message because you are subscribed to the K-9 Mail Users List.
To post to this group, send email to [email protected]
To unsubscribe, email [email protected]
To report an issue with K-9 Mail, visit
http://code.google.com/p/k9mail/issues/list
For more options, visit this group at http://groups.google.com/group/k-9-mail
---
You received this message because you are subscribed to the Google Groups "K-9
Mail" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.