You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Martin Gill <ma...@martinsgill.co.uk> on 2007/01/31 15:48:18 UTC

MISSING_SUBJECT

Hi,

I've been watching my spam assassin rules for a while and I'm getting a
bit confused with a couple of them.

The MISSING_SUBJECT rule fires on every email, even though they actually
have a "Subject:" header and spam assassin actually modifies the message
to add it's SPAM tag.

Also TO_CC_NONE fires all the time, despite a To: header field being present.

Anyone able to explain this to me please? Have I misunderstood what those
rules are checking for?

I'm using spamassassin 3.1.5 running on Mandriva 2007.

  Martin

Example:

Return-Path: <*****HIDDEN******>
X-Spam-Flag: YES
X-Spam-Checker-Version: SpamAssassin 3.1.5 (2006-08-29) on *****HIDDEN******
X-Spam-Level: *****
X-Spam-Status: Yes, score=5.4 required=5.0 tests=BAYES_99,HTML_MESSAGE,
     MISSING_SUBJECT,NO_RECEIVED,TO_CC_NONE autolearn=no version=3.1.5
X-Spam-Report:
     * 0.0 HTML_MESSAGE BODY: HTML included in message
     * 3.5 BAYES_99 BODY: Bayesian spam probability is 99 to 100%
     * [score: 1.0000]
     * 1.8 MISSING_SUBJECT Missing Subject: header
     * -0.0 NO_RECEIVED Informational: message has no Received headers
     * 0.1 TO_CC_NONE No To: or Cc: header
X-Original-To: martin@localhost
Delivered-To: martin@localhost.localdomain
Received: from *****HIDDEN****** (*****HIDDEN******[127.0.0.1])
     by *****HIDDEN******.localdomain (Postfix) with ESMTP id A2379D8A0
     for <ma...@localhost>; Wed, 31 Jan 2007 12:14:07 +0000 (GMT)
Envelope-to: martin@martinsgill.co.uk
Delivery-date: Wed, 31 Jan 2007 12:13:56 +0000
Received: from martinsgill.co.uk [217.112.82.162]
     by odin with POP3 (fetchmail-6.3.4)
     for <ma...@localhost> (single-drop); Wed, 31 Jan 2007 12:14:07 +0000
(GMT)
Received: from [222.137.60.60] (helo=*****HIDDEN******)
     by *****HIDDEN****** with smtp (Exim 4.63)
     (envelope-from <*****HIDDEN******>)
     id 1HCELT-0001Oe-VR
     for martin@martinsgill.co.uk; Wed, 31 Jan 2007 12:13:56 +0000
Message-ID: <*****HIDDEN******>
Reply-To: "Oscar" <*****HIDDEN******>
From: "Oscar" <*****HIDDEN******>
To: "Griselda Nelson" <ma...@martinsgill.co.uk>
Subject: [SPAM] Feeling down
Date: Wed, 31 Jan 2007 08:01:52 -0400
MIME-Version: 1.0
Content-Type: multipart/related;
     type="multipart/alternative";
     boundary="----=_NextPart_049_EDA7_D78C015A.3E06BF21"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1158
X-Spam-Prev-Subject: Feeling down





Re: MISSING_SUBJECT

Posted by Martin Gill <ma...@martinsgill.co.uk>.

On Fri, February 2, 2007 17:56, Rick Vestal wrote:
>
>
> Martin Gill-2 wrote:
>>
[snip]
>>
>
> Mark is 100%. You have misformatted a rule somewhere along the line. Lint
>  your rules and it'll turn up.
>
> I went thru the same thing at one point... drove me crazy.
>
[snip]
>
>


Yes, that was the problem.

I only had one rule.. and i just commented it out and the problem went
away. Didn't know about this lint thing.. i'll look into it.

I also think my previous reply went directly to someone, instead of to the
list. So apologies to whoever that was, and thanks for pointing out the
problem :)




Re: MISSING_SUBJECT

Posted by Rick Vestal <ri...@spectranetics.com>.


Martin Gill-2 wrote:
> 
> Hi,
> 
> I've been watching my spam assassin rules for a while and I'm getting a
> bit confused with a couple of them.
> 
> The MISSING_SUBJECT rule fires on every email, even though they actually
> have a "Subject:" header and spam assassin actually modifies the message
> to add it's SPAM tag.
> 
> Also TO_CC_NONE fires all the time, despite a To: header field being
> present.
> 
> Anyone able to explain this to me please? Have I misunderstood what those
> rules are checking for?
> 
> I'm using spamassassin 3.1.5 running on Mandriva 2007.
> 
>   Martin
> 

Mark is 100%. You have misformatted a rule somewhere along the line. Lint
your rules and it'll turn up.

I went thru the same thing at one point... drove me crazy.

-- 
View this message in context: http://www.nabble.com/MISSING_SUBJECT-tf3149170.html#a8771967
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.


Re: MISSING_SUBJECT

Posted by Mark Martinec <Ma...@ijs.si>.
Martin,

> The MISSING_SUBJECT rule fires on every email, even though they actually
> have a "Subject:" header

If I remember corrently, this effect can be produced by having
syntactically incorrect rules. Make sure to run 'spamassassin --lint'
before starting with modified rules!

  Mark

Re: MISSING_SUBJECT

Posted by Theo Van Dinter <fe...@apache.org>.
On Wed, Jan 31, 2007 at 02:48:18PM -0000, Martin Gill wrote:
> The MISSING_SUBJECT rule fires on every email, even though they actually
> have a "Subject:" header and spam assassin actually modifies the message
> to add it's SPAM tag.
> Anyone able to explain this to me please? Have I misunderstood what those
> rules are checking for?

If you have a valid sample mail that hits the MISSING_SUBJECT rule while being
run through "spamassassin -L", please open a bugzilla ticket and attach (not
cut/paste) the mail in the ticket.

Generally speaking, this issue tends to come up when SA is being called by
third party code, and things are not passed in correctly.

-- 
Randomly Selected Tagline:
"Where as John was much more holmsian, wasn't he... from a very grand and 
 uhh... and he's so shockingly recognized, wasn't he?  He's rather like a 
 tall light bulb, isn't he?"            - Tom Baker