helpSpamAssassin Milter Plugin - Support: sr #101979, Duplicating empty Subject line


sr #101979: Duplicating empty Subject line

Submitted by:  None
Submitted on:  Wed 19 Mar 2003 02:37:28 PM UTC  
Category:  None Priority:  5 - Normal
Severity:  2 - Minor Status:  None
Privacy:  Public Assigned to:  Dan Nelson <dnelson>
Originator Email:  -email is unavailable- Open/Closed:  Open
Operating System:  None

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


( Jump to the original submission)

Tue 13 May 2008 12:37:52 AM UTC, comment #10: 

This problem still exists in 0.3.1 on FreeBSD and Fedora.

To reproduce:

mail -s '' user@domain <<EOF

I applied the patch given by Marco Supino (comment #7) and verified that it worked correctly in all three of these cases:

1) No Subject: header

2) Empty Subject: header (nothing after the : )
   (this is the case that resulted in duplicate Subject: headers)

3) Subject: header with content after the :

Please can we have this (or a functionally equivalent) patch applied to the distributed code, so this long-standing problem can be resolved.

John Rumsey <rumseyj>
Mon 27 Aug 2007 12:52:13 PM UTC, comment #9: 

Has this been fixed in the 0.3.1?

Tue 09 Nov 2004 09:08:46 AM UTC, comment #8: 

Same problem with spamass-milter-0.2.0 RPM.
Any solution?

Mon 01 Nov 2004 09:40:31 AM UTC, comment #7: 

i changed the milter a bit, to solve the problem, now it always change the Subject, never insert it, i changed this in spamass-milter.cpp,line 322 :

if (oldsize > 0)


if (oldsize > 0 || strcmp(header,"Subject") == 0)

This works on my production email server.


Marco Supino <msupino>
Mon 04 Oct 2004 12:47:42 PM UTC, comment #6: 

any solution soon ? my users are starting to dislike me...

Marco Supino <msupino>
Wed 25 Aug 2004 04:05:53 PM UTC, comment #5: 

I checked with some of my test files and it still does this.  I'll have to figure out why.

Dan Nelson <dnelson>
Project AdministratorIn charge of this item.
Wed 25 Aug 2004 03:31:33 PM UTC, comment #4: 

This is also happening in the 0.20 version, any remedy ?

Wed 19 Mar 2003 03:42:27 PM UTC, comment #3: 

Can you forward the spam will full headers to  I want to see if I can reproduce
it here.  I know I have received a lot of spams with an
empty "Subject:" header and they were replaced with
"Subject: ***SPAM***", no duplicates.

Dan Nelson <dnelson>
Project AdministratorIn charge of this item.
Wed 19 Mar 2003 03:36:20 PM UTC, comment #2: 

We tried it with version 0.1.3a and with the actual version
this afternoon (the cvs-version).
We do not mention the bug with the "Fixed header doubling
It only occurs when a message is sent with an empty subject
line. Then the milter adds a second line with th spam
information. But for example Outlook is only capable to
show one subject line. But this line is the empty line.
And we think that this behaviour should not be! Any idea?


Wed 19 Mar 2003 03:15:50 PM UTC, comment #1: 

You don't mention what version of the milter you are
running, but I believe this bug was fixed in 0.1.3 (0.1.3a
is the latest release).

Dan Nelson <dnelson>
Project AdministratorIn charge of this item.
Wed 19 Mar 2003 02:37:28 PM UTC, original submission:  

Hi guys,

we found probably another bug in Spamassassin Milter:
If someone send spammails without anything in the
subject line the Milter does not change the subject
line itself, it adds a second subject line (as you can
see a few lines below). But as you might know, there
should be only one subject line.
Are there any patches that can fix this problem?

Thanks in advance

Herbert Reser
IT Department
City of Villingen-Schwenningen

To: <>
Subject: *****SPAM*****
Date: Wed, 19 Mar 2003 15:17:08 +0100
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="----------
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE
X-Spam-Flag: YES
X-Spam-Status: Yes, hits=22.7 required=5.0




X-Spam-Level: **********************
X-Spam-Checker-Version: SpamAssassin 2.60-cvs 1.178-



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by rumseyj (Posted a comment)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2004-08-25 dnelson Assigned toNone => dnelson

    Back to the top

    Powered by Savane 3.6