The email virus filter wrapper for ClamAV, clamassassin
, appends its headers to the message headers.
X-Virus-Status: No
X-Virus-Checker-Version: clamassassin 1.2.4 with clamscan / ClamAV 1.0.3/27134/Mon Dec 25 11:40:06 2023
It would be better that any MTA delivering the message only prepends to the headers, as RFC 5322, 3.6 suggests:
However, for the purposes of this specification, header fields SHOULD NOT be reordered when a message is transported or transformed. More importantly, the trace header fields and resent header fields MUST NOT be reordered, and SHOULD be kept in blocks prepended to the message. See sections 3.6.6 and 3.6.7 for more information.
For instance, spamassassin
prepends its X-Spam-*
headers above the existing headers. Why clamassassin
does not do the same, and how to alter this behaviour? If, e.g., the .procmailrc
had the following I would expect these headers to appear in the same place.
:0 fw
| clamassassin
:0 fw
| spamassassin