Hi, I can't imagine that this should not be possible, but couldn't find anything about this question in the spamassassin docs or elsewhere on the net. I need a rule that has several single tests that all should return true for the whole rule to match - something like e.g.:
describe RULE and-combined tests header RULE From=~/something/ header RULE User-Agent=~/something else/ score RULE 2 As far as I can tell (the documentation doesn't seem to mention it), it is possible to have several tests, but they are all implicitly OR-combined: if any single partial test matches, so does the whole rule. The only way I could figure out how to get what I want looks like this: describe RULE and-combined tests header _RULE_1 From=~/something/ score _RULE_1 0.01 header _RULE_2 User-Agent=~/something else/ score _RULE_2 0.01 meta RULE (_RULE_1 && _RULE_2) score RULE 2 but this is very clumsy and also causes every single partial test that matched to show up separately in spamassassin's report in the message header (which I would like to avoid). Is there a simpler and better way to specify that all tests in a rule have to match? (or, just for symmetry, to say that a test should not match)? Regards, Peter