The SA wiki says: "rules starting with a double undescore are
evaluated with no score, and are intended for use in meta rules where
you don't want the sub-rules to have a score." on this page:
http://wiki.apache.org/spamassassin/WritingRules and yes, the typo
(undescore) is on the web page - thats a cut and paste, not copy typing.

I read this as saying that there is no default score for subrules whose
name starts with a double underscore, i.e., that given the rules:

body __SUB1 /test/
body __SUB2 /message/
meta USTEST1 (__SUB1 + __SUB2 > 1.0)
meta USTEST2 (__SUB1 && __SUB2)

body SUB3 /test/
body SUB4 /message/
meta USTEST3 (SUB3 + SUB4 > 1.0)
meta USTEST4 (SUB3 && SUB4)

and a message containing:

==================================================================
>From  [email protected]
Date:         Wed, 25 Mar 2009 22:00:27 -0100
From:         [email protected]
To:           [email protected]
Subject:      Test message

A test message.
==================================================================

I expected that the meta USTEST1 would not fire while other three rules
(USTEST2, USTEST3, USTEST4) would. When I ran the test, all four metas
fired.  

Did I mis-understand the wiki or has something changed in SA since that
wiki page was last updated?


Martin


Reply via email to