On 2008-10-20 13:18:03 -0400, Chris Lewis wrote:
> Hanno Hecker wrote:
> > On Mon, 20 Oct 2008 10:42:17 -0400
> > "Chris Lewis" <[EMAIL PROTECTED]> wrote:
> > 
> >> For some reason, SpamAssassin insists on inserting its headers at the
> >> _beginning_ of the header block, whereas all the others insert theirs at
> >> the end.  Obviously, I'd prefer they all did it at the end.
> > 
> > IMO all plugins should insert new headers at the beginning... where new
> > Received: headers MUST be inserted. That way we can see when a header
> > was added
> 
> Ah <slaps head>.  Thanks for the info.
> 
> As these are inbound-only MTAs and do very little "transit" per-se,
> putting them all at the end is much more consistent with the rest of the
> things here (we add a lot more headers than SA/clamdscan) and what most
> people here who try to read headers would expect.

I think it is unfortunate that so much software adds headers at the end.
Received headers must be prepended, and it would make reading headers
much easier if all other software followed that example - we would just
have a chronological order of headers.


> I would think, tho, that if you wanted to put them at the beginning,
> you'd want these headers after the Received header qpsmtpd inserted, no?

Chronologically after, which means above. First, the message is
received, then it is munged.

>  In which case the add index should be 1, not 0.

No, that would be confusing. Just prepend any new header, don't try to
insert it somewhere in the middle. This gives (or would give, if
everybody did it this way) a nice chronological order of headers, with
the newest (inserted by the last MTA) at the top and the oldest (created
by the sending MUA) at the bottom.

Headers inserted by A
Received: by A from B
Headers inserted by B
Received: by B from C
...
Received by Z
Headers inserted by MUA

You can't influence what other MTAs do, but if you get your own MTAs to
consistently only prepend headers, never append them, then you have
something like:

All headers added by your servers in chronological order
Received by: your.mx
A mess of headers added by others

        hp

-- 
   _  | Peter J. Holzer    | Openmoko has already embedded
|_|_) | Sysadmin WSR       | voting system.
| |   | [EMAIL PROTECTED]         | Named "If you want it -- write it"
__/   | http://www.hjp.at/ |  -- Ilja O. on [EMAIL PROTECTED]

Attachment: signature.asc
Description: Digital signature

Reply via email to