You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2009/08/25 14:58:51 UTC

[Bug 6184] New: FN header exists eval rule fails if header is 0 (ZERO) so does regex

https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6184

           Summary: FN header exists eval rule fails if header is 0 (ZERO)
                    so does regex
           Product: Spamassassin
           Version: 3.2.5
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Rules (Eval Tests)
        AssignedTo: dev@spamassassin.apache.org
        ReportedBy: scheidell@secnap.net


using sa debug, on this rule:

header __ST_ISMMS exists:X-MMS-Message-Type

will also FN on THIS rule:
header __ST_ISMMS X-MMS-Message-Type =~ /./

and FN on this rule:
header __ST_ISMMS X-MMS-Message-Type =~ /0/


(why does a 'zero' not be /./?)
a 1 is fine there, but not a zero?  does the header eval rules stip out a
literal zero?


can see subrule hit in debug mode if header contains: (see subtests
X-Mms-Message-Type: 1

./sa-test.pl /tmp/RSbM-3pdTzIE.eml
__CT,__CTYPE_HAS_BOUNDARY,__CTYPE_MULTIPART,__DOS_RCVD_MON,__DOS_RELAYED_EXT,
__FROM_ALL_NUMS,__HAS_MSGID,__HAS_RCVD,__HAS_SUBJECT,__HAVE_BOUNCE_RELAYS,
__LAST_UNTRUSTED_RELAY_NO_AUTH,__MIME_VERSION,__MISSING_REF,__MSGID_OK_DIGITS,
__MSGID_OK_HEX,__NAKED_TO,__NO_REAL_NAME,__SANE_MSGID,__SARE_SPEC_SUBJ_LEO,
__SARE_WHITELIST_FLAG,__ST_ISMMS,__ST_ISMMS_SUBJECT,__TOCC_EXISTS
,__TVD_MIME_CT_MM



but nothing if:

X-Mms-Message-Type: 0

./sa-test.pl /tmp/RSbM-3pdTzIE.eml
__CT,__CTYPE_HAS_BOUNDARY,__CTYPE_MULTIPART,__DOS_RCVD_MON,__DOS_RELAYED_EXT
,__FROM_ALL_NUMS,__HAS_MSGID,__HAS_RCVD,__HAS_SUBJECT,__HAVE_BOUNCE_RELAYS,
__LAST_UNTRUSTED_RELAY_NO_AUTH,__MIME_VERSION,__MISSING_REF,__MSGID_OK_DIGITS,
__MSGID_OK_HEX,__NAKED_TO,__NO_REAL_NAME,__SANE_MSGID,__SARE_SPEC_SUBJ_LEO,
__SARE_WHITELIST_FLAG,__ST_ISMMS_SUBJECT,__TOCC_EXISTS,__TVD_MIME_CT_MM


using this set of headers to test:

Received: from atlmtaow02.cingularme.com (atlmtaow02.cingularme.com
[66.102.165.7])
        by mx1.comprehensive.cc.spammertrap.net (Postfix) with ESMTP id
3EE131CC09C
        for <au...@domain.com>; Mon, 24 Aug 2009 10:16:49 -0400 (EDT)
X-Mms-MMS-Version: 18
Date: Mon, 24 Aug 2009 09:25:45 -0500
X-Nokia-Ag-Internal: ; smiltype=true; internaldate=1251123945625
Content-Type: multipart/mixed; 
boundary="----=_Part_5643167_20618687.1251123945631"
X-Mms-Delivery-Report: 0
Received: from schagw01 ([209.183.32.189]) by atlmtaow02.cingularme.com
        (InterMail vM.6.01.04.00 201-2131-118-20041027) with ESMTP id
<20...@schagw01> for
        <au...@domain.com>; Mon, 24 Aug 2009 10:16:45 -0400
X-Mms-Transaction-ID: MMS0000524776255
From: <99...@mms.att.net>
To: auser@domain.com
X-Mms-Message-Class: 0
X-Mms-Read-Reply: 1
Mime-Version: 1.0
Message-ID: <21...@schagw01>
X-Mms-Priority: 1
X-Mms-Message-Type: 0
Subject: Multimedia message
X-Nokia-Ag-Version: 2.0

-- 
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

[Bug 6184] FN header exists eval rule fails if header is 0 (ZERO) so does regex

Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6184


Karsten Bräckelmann <gu...@rudersport.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE




--- Comment #2 from Karsten Bräckelmann <gu...@rudersport.de>  2009-08-25 08:49:10 PST ---
Agreed.

*** This bug has been marked as a duplicate of bug 5965 ***

-- 
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

[Bug 6184] FN header exists eval rule fails if header is 0 (ZERO) so does regex

Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6184





--- Comment #1 from Mark Martinec <Ma...@ijs.si>  2009-08-25 06:24:19 PST ---
I believe this is a duplicate for Bug 5965,
and is fixed in 3.3.0.

-- 
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.