Hi Norman,

I used the mail.getMessage().toInputStream() which returned only the body (not the headers).
So I will use the MimeMessageInputStream(mail.getMessage()).
Tks,

Eric


On 19/01/2011 09:01, Norman Maurer wrote:
Hi Eric,

I'm a bit confused.. The MimeMessage contains everything you need. I
think this should do the job:

new MimeMessageInputStream(mail.getMessage);

Bye,
Norman


2011/1/19 Eric Charles<[email protected]>:
Hi,

For the 2.3 import tool, I need to convert the org.apache.mailet.Mail to
InputStream (not only the MimeMessage, but the whole mail with subject,
headers,...).
Is there an existing utility class, or should I write one (one where to
place it ?) ?

Tks,

Eric


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to