> From: Genchev, Sergei [mailto:[EMAIL PROTECTED]
> ...
>  Is it just me or does SpamAssassin (2.63) include subject in body tests?

Your use of the term "body tests" here begs the question.  I believe by
default *all* headers are included in test (subject, from, received-by...)

>  To check my suspicion I have created 2 test rules:
> 
> header TESTING123_SUBJ         Subject =~ /testing123/i
> score TESTING123_SUBJ          0.01
> body TESTING123_BODY           /testing123/i
> score TESTING123_BODY          0.01
> 
>  If I send myself an E-mail with "testing123" in a body only, it only
> triggers TESTING123_BODY test - as expected. If on the other 
> hand I send
> myself an E-mail with "testing123" in the subject but not in 
> a body, it
> triggers both tests, like in the E-mail below.
> 
>  Is it a bug, a feature or am I pipe dreaming?

You can specify Subject in the rule as you have above.
If there is a corresponding way to specify the Body (Body =~ /.../) then it
must be construed as a feature.  If there is not, it must be construed as a
design decision.  I don't believe this can be considered a bug.

If the design does not allow for a Body =~ /.../ you might be able to work
around it as
/testing123/i && Subject !~ /testing123/i
or perhaps a feature request should be submitted to allow for a Body =~
/.../

Reply via email to