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. > Only the spamassassin plugin uses the INDEX parameter of add(), all > others do not, see Mail::Header (0 => before the first header). > > 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 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? In which case the add index should be 1, not 0. As our spamassassin plugin is a local hack, it's no problem to elide the index setting, and it's working the way I want it to now. Thanks.