Re: Strange header problem.

Marc MERLIN <[email protected]> Wed, 22 Mar 2006 09:41:02 -0800
Newsgroups gmane.mail.exim.spamassassin
Message-ID <[email protected]>
On Wed, Mar 22, 2006 at 09:17:39AM -0800, Jon Ferguson wrote:
> Messages rejected by sa-exim produce headers similar to this
> 
> >From [email protected] Thu Jan  1 00:00:01 1970
> 
> Received: from ****************** ([***********] helo=********************)
> 
>         By mail2 with esmtp (Exim 4.60)
> 
>         (envelope-from <[email protected]>)
> 
>         id 1F2LxA-0005ne-M2
> 
>         for ****@*****.org; Thu, 26 Jan 2006 23:15:20 -0600
>
> The top header of every message in SApermpreject and SAtempreject is a From
> header but a date is appended, on top of that the date is incorrect.  I
> assume that violates some RFC standard.  I can't figure why it is doing
> this.  I am trying to build a web interface to delete or release rejected
> messages but the date in the From header is causing problems. 

SA-Exim adds that fake line at the top to make the message look like an mbox
message in addition to being in a maildir folder.
If you read the maildir folder as maildir, that From line should not be
used, but I can see that some tool would be upset by that.

Ultimately, this line is fake and it's added by SA-Exim only so that you can
do cat new/* > mbox; mutt -f mbox

The date should have a correct format though. If you think it upsets your
tool, you can edit it in the sa-exim source or binary and change it to
whatever you'd like

Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/   |   Finger [email protected] for PGP key