On 6/9/2016 7:55 AM, jimimaseye wrote:
Once upon a time the include rules for spamassassin was published in its wiki
(example here: http://spamassassin.apache.org/tests_3_3_x.html) which in
turn gave a link to an 'explanation' detail of the individual rules.
However, as you know, these wiki ages are no longer updated due to "rules
being updated nightly". And googling an individual rule does only give
something useful as long as it appeared in the old 3.3 wiki (like in the
link above). So where does one find details of new rules?
For those of use that have no idea on the behind-the-scenes workings of
spamassassin (including the development contributions, scoring evaluations
etc), could someone give me a starter please to where I can start to look or
find a page giving detail similar to the above in order I can then lookup.
(I assume that every rule has some form of explanation to it before it gets
committed and included). How do I find such detail (in a readable, end-user
understandable form)? (Links to development, discussion, commits or
whatever are fine just as long as ultimately it ends up giving the rule
detail).
(Currently it seems I am just having 'to trust' whatever scores are given to
the rules, and that the rules are pertinent to every system. And without an
explanation of the rules, it seems a little strange that we, as admins, are
allowed to then tailor the scoring of such rules (if we wish to) even though
we have no idea what the rules are in the first place).
The best place to find detail about the rules is in the rule files
themselves. You can get the description, scores, and actual regex for
the rule. Of course, you do need to be able to read the regex...
For example:
$ cd /var/lib/spamassassin/3.004001/updates_spamassassin_org
$ grep ONLINE_PHARMACY *
20_drugs.cf:body ONLINE_PHARMACY /\bonline
pharmacy|\b(?:drugs|medications) online/i
20_drugs.cf:describe ONLINE_PHARMACY Online Pharmacy
50_scores.cf:score ONLINE_PHARMACY 0.843 2.371 0.008 0.650
Your rule files may be in a slightly different place depending on your
OS and how you installed.
--
Bowie