You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Joost Kraaijeveld <J....@Askesis.nl> on 2006/02/11 15:08:45 UTC
Spammasssin skips rules?
Hi,
I have two rules in a file "/etc/spamassassin/80_jkr.cf" that seem be to
skipped by spamassassin:
body JKR_TEST_BODY_RULE /e/
score JKR_TEST_BODY_RULE 0.0
describe JKR_TEST_BODY_RULE JKR body rule
header JKR_TEST_HEADER_RULE Subject =~ /e/
score JKR_TEST_HEADER_RULE 0.0
describe JKR_TEST_HEADER_RULE JKR header rule
Running "spamassasin --lint -D" shows:
....
debug: config: read file /etc/spamassassin/80_jkr.cf
...
so I assume that the file is picked up by spamassassin. I expect all
mails that have an "e" in either the header or body (which is most
mails) to have a hit for thos rules. This is however not the case.
Spamassassin does uses the RulesDuJour rukes, that are stored in the
same directory.
Is my regex wrong or are there circumstances that Spamassassin skips any
rules?
--
Groeten,
Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
e-mail: J.Kraaijeveld@Askesis.nl
web: www.askesis.nl
Re: Spammasssin skips rules?
Posted by Joost Kraaijeveld <J....@Askesis.nl>.
Thanks. Setting the score to 0.001 did the trick.
--
Groeten,
Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
e-mail: J.Kraaijeveld@Askesis.nl
web: www.askesis.nl
Re: Spammasssin skips rules?
Posted by Matt Kettler <mk...@comcast.net>.
Joost Kraaijeveld wrote:
> Hi,
>
> I have two rules in a file "/etc/spamassassin/80_jkr.cf" that seem be to
> skipped by spamassassin:
>
> body JKR_TEST_BODY_RULE /e/
> score JKR_TEST_BODY_RULE 0.0
> describe JKR_TEST_BODY_RULE JKR body rule
>
> header JKR_TEST_HEADER_RULE Subject =~ /e/
> score JKR_TEST_HEADER_RULE 0.0
> describe JKR_TEST_HEADER_RULE JKR header rule
>
>
> Running "spamassasin --lint -D" shows:
> ....
> debug: config: read file /etc/spamassassin/80_jkr.cf
> ...
>
> so I assume that the file is picked up by spamassassin. I expect all
> mails that have an "e" in either the header or body (which is most
> mails) to have a hit for thos rules. This is however not the case.
> Spamassassin does uses the RulesDuJour rukes, that are stored in the
> same directory.
>
> Is my regex wrong or are there circumstances that Spamassassin skips any
> rules?
>
Spamassassin never runs any normal rule (one which appears in the hit
list) with a score of 0. This is intended to be a useful way for users
to completely disable rules that are causing too much overhead on their
systems.
Try a score of -0.001 instead.
The only rules that get run with no score are those starting with a
double underscore in the name. By default these rules run but have no
score, but also never appear in the hits list, and are used as sub-parts
of meta rules. Even with these, last I checked, if you explicitly
declared a score of zero for one of these rules it would disable it.
>
>
Re: Spammasssin skips rules?
Posted by Craig McLean <cr...@fukka.co.uk>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Joost Kraaijeveld wrote:
> Hi,
>
> I have two rules in a file "/etc/spamassassin/80_jkr.cf" that seem be to
> skipped by spamassassin:
>
> body JKR_TEST_BODY_RULE /e/
> score JKR_TEST_BODY_RULE 0.0
> describe JKR_TEST_BODY_RULE JKR body rule
>
> header JKR_TEST_HEADER_RULE Subject =~ /e/
> score JKR_TEST_HEADER_RULE 0.0
> describe JKR_TEST_HEADER_RULE JKR header rule
>
>
[snip]
> Is my regex wrong or are there circumstances that Spamassassin skips any
> rules?
>
>
Rules scored at 0 will be skipped by SA. If you want the rule to fire
but with a very low score (for testing, etc) assign a score like 0.01 to it.
C.
- --
Craig McLean http://fukka.co.uk
craig@fukka.co.uk Where the fun never starts
Powered by FreeBSD, and GIN!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFD7fO+MDDagS2VwJ4RAnPPAJwLX5SKGxES4WxR61ks+rgTyXTGkgCgk1sN
U3ogYpdyrpGGDiPpQuZFMsA=
=ugT8
-----END PGP SIGNATURE-----