Is it just me or does SpamAssassin (2.63) include subject in body tests?
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?
>>From sgenchev@yahoo.com Thu Jan 29 16:52:05 2004
>Return-Path: <sgenchev@yahoo.com>
>Received: from spambox.garmin.com (10.1.0.27 [10.1.0.27]) by
dallas.garmin.com with SMTP (Microsoft Exchange Internet Mail Service
>Version 5.5.2653.13)
> id DZ0FL1DF; Thu, 29 Jan 2004 16:51:01 -0600
>Received: from localhost (spambox [127.0.0.1])
> by spambox.garmin.com (Postfix) with ESMTP id CB2503F3C
> for <sgenchev@garmin.com>; Thu, 29 Jan 2004 16:50:56 -0600 (CST)
>Received: from spambox.garmin.com ([127.0.0.1])
> by localhost (spambox [127.0.0.1]) (amavisd-new, port 10024) with ESMTP
> id 04139-02 for <sgenchev@garmin.com>; Thu, 29 Jan 2004 16:50:56 -0600
(CST)
>Received: from web10412.mail.yahoo.com
> (web10412.mail.yahoo.com [216.136.128.126]) by pompeii.garmin.com with
> SMTP id i0TMou7X001087 for <sgenchev@garmin.com>; Thu, 29 Jan 2004
> 16:50:56 -0600 (CST)
>Message-ID: <20040129225051.53345.qmail@web10412.mail.yahoo.com>
>Received: from [63.76.48.90] by web10412.mail.yahoo.com via HTTP; Thu, 29
Jan
> 2004 14:50:51 PST
>Date: Thu, 29 Jan 2004 14:50:51 -0800 (PST)
>From: Sergei Genchev <sgenchev@yahoo.com>
>Subject: testing123
>To: sgenchev@garmin.com
>MIME-Version: 1.0
>Content-Type: text/plain; charset="us-ascii"
>X-Spam-Status: No, hits=-4.9 tagged_above=-200.0 required=5.4
tests=BAYES_00,
> TESTING123_BODY, TESTING123_SUBJ
>X-Spam-Level:
>
>Hi
>
>__________________________________
>Do you Yahoo!?
>Yahoo! SiteBuilder - Free web site building tool. Try it!
>http://webhosting.yahoo.com/ps/sb/
-------------------------
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient. If you are not the intended recipient, please be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is prohibited. If you have received this e-mail in error, please contact the sender and delete all copies.
Thank you for your cooperation
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?
>>From sgenchev@yahoo.com Thu Jan 29 16:52:05 2004
>Return-Path: <sgenchev@yahoo.com>
>Received: from spambox.garmin.com (10.1.0.27 [10.1.0.27]) by
dallas.garmin.com with SMTP (Microsoft Exchange Internet Mail Service
>Version 5.5.2653.13)
> id DZ0FL1DF; Thu, 29 Jan 2004 16:51:01 -0600
>Received: from localhost (spambox [127.0.0.1])
> by spambox.garmin.com (Postfix) with ESMTP id CB2503F3C
> for <sgenchev@garmin.com>; Thu, 29 Jan 2004 16:50:56 -0600 (CST)
>Received: from spambox.garmin.com ([127.0.0.1])
> by localhost (spambox [127.0.0.1]) (amavisd-new, port 10024) with ESMTP
> id 04139-02 for <sgenchev@garmin.com>; Thu, 29 Jan 2004 16:50:56 -0600
(CST)
>Received: from web10412.mail.yahoo.com
> (web10412.mail.yahoo.com [216.136.128.126]) by pompeii.garmin.com with
> SMTP id i0TMou7X001087 for <sgenchev@garmin.com>; Thu, 29 Jan 2004
> 16:50:56 -0600 (CST)
>Message-ID: <20040129225051.53345.qmail@web10412.mail.yahoo.com>
>Received: from [63.76.48.90] by web10412.mail.yahoo.com via HTTP; Thu, 29
Jan
> 2004 14:50:51 PST
>Date: Thu, 29 Jan 2004 14:50:51 -0800 (PST)
>From: Sergei Genchev <sgenchev@yahoo.com>
>Subject: testing123
>To: sgenchev@garmin.com
>MIME-Version: 1.0
>Content-Type: text/plain; charset="us-ascii"
>X-Spam-Status: No, hits=-4.9 tagged_above=-200.0 required=5.4
tests=BAYES_00,
> TESTING123_BODY, TESTING123_SUBJ
>X-Spam-Level:
>
>Hi
>
>__________________________________
>Do you Yahoo!?
>Yahoo! SiteBuilder - Free web site building tool. Try it!
>http://webhosting.yahoo.com/ps/sb/
-------------------------
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient. If you are not the intended recipient, please be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is prohibited. If you have received this e-mail in error, please contact the sender and delete all copies.
Thank you for your cooperation