Christian Recktenwald wrote:
I ran some tests which indicate one may not have subsequent '-' after 'X-' in header lines:
Thats a great test, many thnx for it. It simply indicates, that ASN.pm is running nearly at first, before SA does its messurements. And SA surely strips all head-lines starting with "X-Spam-" before its doing anything. So, its not a bug of SA itself, its rather a problem of ASN.pm ASN.pm should insert something else, like X-ASN or so and should strip this line of itself, before it starts ... Maybe add_header all ASN _ASN_ _ASNCIDR_ should be modifified ? But it looks like add_header can only be used to insert lines starting with X-Spam-, is there any other way to tell SA to insert a header line wich is starting with something else ? Kind regards, Frank
given this "message": X-SpamASN: AS3701 140.211.0.0/16 X-Spam-ASN: AS3701 140.211.0.0/16 body... and those rules: header _LOCAL_XAS1 X-SpamASN =~ /AS3701 / describe _LOCAL_XAS1 Sender IP in AS from friendly SA user score _LOCAL_XAS1 -0.1 header _LOCAL_XAS2 X-Spam-ASN =~ /AS3701 / describe _LOCAL_XAS2 Sender IP in AS from friendly SA user score _LOCAL_XAS2 -0.1 _LOCAL_XAS1 matches and _LOCAL_XAS2 does not: pts rule name description ---- ---------------------- -------------------------------------------------- -0.1 _LOCAL_XAS1 Sender IP in AS from friendly SA user -0.0 NO_RELAYS Informational: message was not relayed via SMTP 1.6 SUBJ_ALL_CAPS Subject is all capitals 1.2 MISSING_HEADERS Missing To: header 0.1 MISSING_MID Missing Message-Id: header -0.0 NO_RECEIVED Informational: message has no Received headers 1.4 MISSING_DATE Missing Date: header 0.0 NO_HEADERS_MESSAGE Message appears to be missing most RFC-822 headers perhaps this might be worth a bug report.
-- MOTD: "have you enabled SSL on a website or mailbox today ?" -- PHADE Software - PowerWeb http://www.powerweb.de Inh. Dipl.-Inform. Frank Gadegast mailto:fr...@powerweb.de Schinkelstrasse 17 fon: +49 33200 52920 14558 Nuthetal OT Rehbruecke, Germany fax: +49 33200 52921 ======================================================================