james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niklas Therning <nik...@trillian.se>
Subject Re: mime4j don't read first line of a mail !!
Date Mon, 29 Jun 2009 09:50:12 GMT
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 sender@example.fr Fri Dec 12 00:05:19 2008
> Date: Fri, 19 Jun 2009 10:31:05 +0200 (CEST)
> From: "Boîte de test" <test@example.fr>
> To: me@example.fr
> 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" <test@example.fr>
> To: me@example.fr
> 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 sender@example.fr 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

Mime
View raw message