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. > >