Christophe MOURETTE (AKIO) wrote:
hello,
i think that my configuration of mime4j mail parser was wrong because the
parser don't read the fist line of a mail file. in this incoming mail
example :
From [email protected] Fri Dec 12 00:05:19 2008
Date: Fri, 19 Jun 2009 10:31:05 +0200 (CEST)
From: "Boîte de test" <[email protected]>
To: [email protected]
Message-ID: <28566293.21245400265292.JavaMail.example-logger>
i have no problems to read headers because the fist line is not a line that
i want to read (generated by smpt protocol i think)
But my problem is for outgoing mail because the first line is a header that
i want to read. by example :
Date: Fri, 19 Jun 2009 10:31:05 +0200 (CEST)
From: "Boîte de test" <[email protected]>
To: [email protected]
Message-ID: <28566293.21245400265292.JavaMail.example-logger>
i haven't googled a lot on my problem but nothing .. anyone have an idea ?
Hi,
I'm pretty certain that Mime4j doesn't skip the first line like you are
suggesting. Could you perhaps provide us with some sample code and
samples of the e-mail messages you are reading?
The 'From [email protected] Fri Dec 12 00:05:19 2008' line in your first
example above is not part of the original message. This is a delimiter
used by your e-mail client to delimit messages in the mailbox file.
Mime4j will skip it since it isn't a valid header.
--
Niklas Therning
www.spamdrain.net