Karsten Bräckelmann wrote:
Frank Gadegast skrev den 2013-04-24 16:45:
header LOCAL_AS6697 X-Spam-ASN =~ / AS6697 /
The ASN plugin documentation [1] shows the AS number at the beginning of
the header's value. The leading space prevents your header rule from
matching, and should instead even anchor the RE at the beginning.
/^AS6697 /
Hm, I should have sayd, that I tried the rule even without any spacing,
with ancor, with whatever before and it didnt work.
Last test was like this, took a msg (from this list :o)
# spamassassin 2>&1 -D -t msg | grep X-Spam-ASN
X-Spam-ASN: AS3701 140.211.0.0/16
inserted the rule to match this one
header LOCAL_AS3356 X-Spam-ASN =~ /^AS3701 /
describe LOCAL_AS3356 Sender IP in AS from friendly SA user
score LOCAL_AS3356 -0.1
restarted SA and tested with
# spamassassin 2>&1 -D -t msg | grep LOCAL_AS
Nothing :o(
I still think its a problem, that SA
- either strips all X-Spam- lines out of the mail before starting
(and also strips the X-Spam-AS out)
- or starts its ruling business before the X-Spam-AS is applied
Any idea how to test the order ?
lint didnt really help here, debug neither ...
Kind regards, Frank
[1]
http://spamassassin.apache.org/full/3.3.x/doc/Mail_SpamAssassin_Plugin_ASN.html
On Thu, 2013-04-25 at 00:32 +0200, Benny Pedersen wrote:
/\ AS6697\ /
space needs to be excaped, [...]
Just... No.
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
======================================================================