Emmanuel Lesouef wrote:

> body LOCAL_DEMONSTRATION_RULE   /test/
> score LOCAL_DEMONSTRATION_RULE 1.000
> describe LOCAL_DEMONSTRATION_RULE       This is a simple test rule
> 
> The problem is that the rule doesn't seems to be parsed.
> 
> For example, here are the spamassassin headers for an email that
> contains "test" in the subject :
> 
> X-Spam-Score: -0.167
> X-Spam-Level: 
> X-Spam-Status: No, score=-0.167 required=5 tests=[AWL=0.386,
> BAYES_00=-2.599, RCVD_IN_SORBS_DUL=2.046]
> 
> Any good advices on this ?

Yes, if you want to match 'test' in the Subject, you need a header rule: 

header      LOCAL_DEMONSTRATION_RULE    /test/
score       LOCAL_DEMONSTRATION_RULE    1.000
describe    LOCAL_DEMONSTRATION_RULE    This is a simple test rule


AFAIK there are four different types of rules: body, rawbody, header and 
full. 

Reply via email to