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 2017/03/10 14:53:18 UTC

[Bug 7395] New: Tag "rewrite_header Subject" failing if subject is NULL or blank

https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7395

            Bug ID: 7395
           Summary: Tag "rewrite_header Subject" failing if subject is
                    NULL or blank
           Product: Spamassassin
           Version: 3.4.0
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: spamassassin
          Assignee: dev@spamassassin.apache.org
          Reporter: dario.ugliola@smatorino.it
  Target Milestone: Undefined

GoodMorning,
I have add in my local.cf this tag:

rewrite_header Subject +++++SPAM+++++

All mail that received without subject or blank subject this rule don't rewrite
the subject.
If this same mail has the subject the rule work correctly.

Ex:


Spam detection software, running on the system "mailgate",
has identified this incoming email as possible spam.  The original
message has been attached to this so you can view it or label
similar future email.  If you have any questions, see
the administrator of that system for details.

Content preview:  test test [...] 

Content analysis details:   (92.7 points, 4.0 required)

 pts rule name              description
---- ---------------------- --------------------------------------------------
  90 USER_IN_BLACKLIST      From: address is in the user's black-list
 0.5 EMPTYSUBJECT           No description available.
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
provider
                            (dadax1982[at]libero.it)
 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in
                            digit (dadax1982[at]libero.it)
 0.2 FREEMAIL_REPLYTO_END_DIGIT Reply-To freemail username ends in digit
                            (dadax1982[at]libero.it)
 1.0 BAYES_00               BODY: Bayes spam probability is 0 to 1%
                            [score: 0.0001]
 0.0 HTML_MESSAGE           BODY: HTML included in message
-0.1 DKIM_VALID_AU          Message has a valid DKIM or DK signature from
author's
                            domain
-0.1 DKIM_VALID             Message has at least one valid DKIM or DK signature
 0.1 DKIM_SIGNED            Message has a DKIM or DK signature, not necessarily
valid
 0.8 RDNS_NONE              Delivered to internal network by a host with no
rDNS

The original message was not completely plain text, and may be unsafe to
open with some email clients; in particular, it may contain a virus,
or confirm that your address can receive spam.  If you wish to view
it, it may be safer to save it to a file and open it with an editor

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 7395] Tag "rewrite_header Subject" failing if subject is NULL or blank

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

Gianmarco <gm...@estraspa.it> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gmarco@estraspa.it

--- Comment #2 from Gianmarco <gm...@estraspa.it> ---
Hi,

I am using Spamassassin 3.4.1 on FreeBSD 11.1p9 and sendmail+tls+sasl2-8.15.2.
I am experiencing the same iussue.

If the spam mail have an empty subj the result tagged mail will have the
following headers having:

rewrite_header  Subject [ SPAM ] -




[...]
Date: Mon, 23 Apr 2018 17:24:03 +0600
From: "Alexi" <ya...@guccibagshere.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.10)
Gecko/20100512 Thunderbird/3.0.5
MIME-Version: 1.0
To: <*******@*******>
Subject: [ SPAM ] -
Subject:
Content-Type: multipart/mixed; boundary="----------=_5ADD5FF0.97272769"
X-Virus-Scanned: clamav-milter 0.100.0 at xxxxx.xxxxx.xxxxx
X-Virus-Status: Clean
X-Spam-Flag: YES
X-Spam-Status: Yes, score=11.8 required=4.5 tests=DATE_IN_FUTURE_06_12,
   
HELO_MISC_IP,HTML_EXTRA_CLOSE,HTML_MESSAGE,RCVD_IN_PBL,RCVD_IN_XBL,RDNS_NONE,
    URI_WP_DIRINDEX,URI_WP_HACKED_2 autolearn=disabled version=3.4.1
X-Spam-Level: ***********
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on xxxxx.xxxxx.xxxxxx


So there will be 2 Subject lines ... The original empty one and the one that
spamassassin have added ...

Please let us know if it could be fixed ...

Thanks.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 7395] Tag "rewrite_header Subject" failing if subject is NULL or blank

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

--- Comment #5 from Giovanni Bechis <gi...@paclan.it> ---
Can you reproduce the issue by running:
$ spamassassin -t -D spammsg.eml 
and post the debug result ?
Are you using a "middleware" to connect spamassassin to your mta ? amavisd-new
or some other software ?
 Thanks & Cheers
   Giovanni

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 7395] Tag "rewrite_header Subject" failing if subject is NULL or blank

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

Dario <da...@smatorino.it> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dario.ugliola@smatorino.it

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 7395] Tag "rewrite_header Subject" failing if subject is NULL or blank

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

Giovanni Bechis <gi...@paclan.it> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |giovanni@paclan.it

--- Comment #1 from Giovanni Bechis <gi...@paclan.it> ---
I cannot reproduce on trunk nor on 3.4.1, could you provide a sample that
exposes this bug ?
 Thanks
  Giovanni

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 7395] Tag "rewrite_header Subject" failing if subject is NULL or blank

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

--- Comment #4 from Gianmarco <gm...@estraspa.it> ---
Created attachment 5570
  --> https://bz.apache.org/SpamAssassin/attachment.cgi?id=5570&action=edit
a message that show this iussue (probably a malware)

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 7395] Tag "rewrite_header Subject" failing if subject is NULL or blank

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

Kevin A. McGrail <km...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WORKSFORME
                 CC|                            |kmcgrail@apache.org
             Status|NEW                         |RESOLVED

--- Comment #3 from Kevin A. McGrail <km...@apache.org> ---
I have also tested this by creating an email with a subject of "Subject:"
"Subject: \t" and without a subject header.  I also tried an email with two
Subject Headers and it handled it well.

I could not replicate this issue and without a pastebin sample of an email that
reproduces the problem, closing as worksforme.

-- 
You are receiving this mail because:
You are the assignee for the bug.