Howto AND-combine several tests in a single rule?

2009-07-07 Thread Peter Daum
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

Re: Howto AND-combine several tests in a single rule?

2009-07-07 Thread Martin Gregorie
On Tue, 2009-07-07 at 09:43 +0200, Peter Daum wrote: 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)? describe RULE Combined tests header__R1 From=~/something/ header__R2

Re: Howto AND-combine several tests in a single rule?

2009-07-07 Thread Peter Daum
Martin Gregorie wrote: You need double underscores to make a rule invisible. ... oops - I had overlooked on the web page, that this is _2_ underscores (and was pretty puzzled to discover that w/o assigning a separate score to each single test they will be ignored ;) - Thanks a lot! Just for

Re: Howto AND-combine several tests in a single rule?

2009-07-07 Thread RW
On Tue, 07 Jul 2009 14:33:12 +0200 Peter Daum gator...@yahoo.de wrote: - whereas hidden tests are only useful for meta rules (when I prepend __ to the name of some other rule, it is not only hidden, but also ends up with a score of 0, even if there is some other score explicitly assigned)

Re: Howto AND-combine several tests in a single rule?

2009-07-07 Thread Martin Gregorie
On Tue, 2009-07-07 at 14:33 +0200, Peter Daum wrote: Just for clarification: - I guess, your answer implies that the only way to write a rule where each of several tests must match is via such a meta rule? (i.e. there is no way to write a regular rule with multiple tests that must all