mainSpamAssassin Milter Plugin - Support: sr #101224, Duplicating Header Entries

 
 

sr #101224: Duplicating Header Entries

Submitter:  Invalid User ID <#8172>
Submitted:  Mon 26 Aug 2002 10:39:48 AM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  2 - Minor Status:  None
Privacy:  Public Assigned to:  dnelson
Open/Closed:  Open Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Wed 18 Sep 2002 11:39:21 PM UTC, comment #13: 


I'm unable to login to CVS. Getting a connection refused on
port 2401 and connection reset by peer on 443. Anyone have a
recent snapshot they can send to -email is unavailable-
Thanks all.

James.

Anonymous
Wed 18 Sep 2002 11:22:13 PM UTC, comment #12: 


I've only ever had luck applying patches to the CVS
versions, not the release sources...

GT

Invalid User ID <#8172>
Wed 18 Sep 2002 11:14:54 PM UTC, comment #11: 


Excellent! -m is exactly what I'm looking for. Can that
patch be used against 0.1.2 source, or do I have to use the
latest cvs?

Anonymous
Wed 18 Sep 2002 11:02:12 PM UTC, comment #10: 


I downloaded a CVS about a week ago, then used Patch 385 to
make body/subject/contenttype modification optional (the -m
switch), and it fixed my problem.

GT

Invalid User ID <#8172>
Wed 18 Sep 2002 10:54:04 PM UTC, comment #9: 


It would appear that this happens when spamassassin is set
rewrite_subject 0
I just turned that on and I'm seeing this same behavior.
This seems to cause the milter to add header rather then
change: header
Dunno where the added content type is coming from... It's
happening to me too.

Anonymous
Wed 28 Aug 2002 09:51:13 AM UTC, comment #8: 


No... this is the only milter.... I did upgrade from 0.1.1
to 0.1.2.... well all I did was install 0.1.2 over the top
of 0.1.1.

When I get a chance, I'll try the CVS instead. (Incase the
line wrap causes me grief)

Thanks
GT

Invalid User ID <#8172>
Tue 27 Aug 2002 02:46:05 PM UTC, comment #7: 


Bah.  Savannah wordwrapped on me.

Dan Nelson <dnelson>
Group administrator
Tue 27 Aug 2002 02:37:39 PM UTC, comment #6: 


It's in CVS, but here's the equvalent patch.  The Subject:
stuff looks to be correct already.  Do you maybe have an
upstream milter still running an older version?  I wish
milters could modify the Received: header sendmail adds, so
you can tell what happened at each hop.

Index: spamass-milter.cpp
===================================================================
RCS file:
/cvsroot/spamass-milt/spamass-milt/spamass-milter.cpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -p -r1.13 -r1.14
--- spamass-milter.cpp  14 Aug 2002 16:15:10 -0000      1.13
+++ spamass-milter.cpp  23 Aug 2002 16:59:38 -0000      1.14
@@ -334,7 +334,7 @@ assassinate(SMFICTX* ctx, SpamAssassin*
       if (old > 0 && newstring != oldstring)
        smfi_chgheader(ctx,"Content-Type",1,newstring.size()

> 0 ?

                       const_cast<char*>(newstring.c_str())
: NULL );
-      else if (assassin->content_type().size()>0)
+      else if (newstring.size()>0)
        smfi_addheader(ctx, "Content-Type",
                       const_cast<char*>(newstring.c_str()));

Dan Nelson <dnelson>
Group administrator
Tue 27 Aug 2002 12:17:24 PM UTC, comment #5: 


The bug fix for duplicated Content-Type.....which patch is
it? I can give it a go...

GT

Invalid User ID <#8172>
Tue 27 Aug 2002 09:43:03 AM UTC, comment #4: 


Sorry about the duplicate submission....kinda like the
problem I guess... duplicated ;)

GT

Invalid User ID <#8172>
Tue 27 Aug 2002 06:38:10 AM UTC, comment #3: 


Yep....here's a snippet from the headers are a spam email
I'm using to test with... I have setup spamassassin to only
change the header's of emails as they enter thru the first
seet of MTA's. I then use PROCMAIL on internal mailservers
to check the spam level in the header, and ditch if above a
per user threshold.....regards gt.

From: "Garry Thomas" <gthomas@netstarnetworks.com>
To: "'Garry Thomas'" <gthomas@netstarnetworks.com>
Subject: FW: Live webcams nuaus
Subject: FW: Live webcams nuaus
Date: Mon, 26 Aug 2002 20:07:48 +1000
Message-ID: <002501c24ce8$71620c90
$0bf8120a@netstarnetworks.com>
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_0026_01C24D3C.430E1C90"
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_0026_01C24D3C.430E1C90"
X-Spam-Status: Yes, hits=10.1 required=5.0
tests=PORN_11,CLICK_BELOW,DOUBLE_CAPSWORD,PORN_12,
     
MAILTO_WITH_SUBJ,HTML_WITH_BGCOLOR,CLICK_HERE_LINK,
     
MAILTO_LINK,FREQ_SPAM_PHRASE,PORN_3,FROM_AND_TO_SAME
version=2.31
X-Spam-Flag: YES
X-Spam-Report:   10.1 hits, 5 required;
  *  1.2 -- BODY: Uses words and phrases which indicate
porn (11)
  *  1.5 -- BODY: Asks you to click below
  *  1.1 -- BODY: A word in all caps repeated on the line
  *  0.7 -- BODY: Uses words and phrases which indicate
porn (12)
  *  1.9 -- URI: Includes a link to send a mail with a
subject
  *  1.3 -- BODY: HTML mail with non-white background
  *  0.8 -- BODY: Tells you to click on a URL
  *  0.8 -- BODY: Includes a URL link to send an email
  *  2.4 -- Contains phrases frequently found in spam
            [score:  14, hits: click here, credit card, one]
            [our, our list, this email, you must, you want,]
            [your email]
  *  0.5 -- Uses words and phrases which indicate porn (3)
  * -2.1 -- From and To the same address
X-Spam-Level: ********
X-Spam-Checker-Version: SpamAssassin 2.31 (devel $Id:
SpamAssassin.pm,v 1.94.2.2 2002/06/20 17:20:29 hughescr Exp
$)

Invalid User ID <#8172>
Tue 27 Aug 2002 04:01:22 AM UTC, comment #2: 


Yep....here's a snippet from the headers are a spam email
I'm using to test with... I have setup spamassassin to only
change the header's of emails as they enter thru the first
seet of MTA's. I then use PROCMAIL on internal mailservers
to check the spam level in the header, and ditch if above a
per user threshold.....regards gt.

From: "Garry Thomas" <gthomas@netstarnetworks.com>
To: "'Garry Thomas'" <gthomas@netstarnetworks.com>
Subject: FW: Live webcams nuaus
Subject: FW: Live webcams nuaus
Date: Mon, 26 Aug 2002 20:07:48 +1000
Message-ID: <002501c24ce8$71620c90
$0bf8120a@netstarnetworks.com>
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_0026_01C24D3C.430E1C90"
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_0026_01C24D3C.430E1C90"
X-Spam-Status: Yes, hits=10.1 required=5.0
tests=PORN_11,CLICK_BELOW,DOUBLE_CAPSWORD,PORN_12,
     
MAILTO_WITH_SUBJ,HTML_WITH_BGCOLOR,CLICK_HERE_LINK,
     
MAILTO_LINK,FREQ_SPAM_PHRASE,PORN_3,FROM_AND_TO_SAME
version=2.31
X-Spam-Flag: YES
X-Spam-Report:   10.1 hits, 5 required;
  *  1.2 -- BODY: Uses words and phrases which indicate
porn (11)
  *  1.5 -- BODY: Asks you to click below
  *  1.1 -- BODY: A word in all caps repeated on the line
  *  0.7 -- BODY: Uses words and phrases which indicate
porn (12)
  *  1.9 -- URI: Includes a link to send a mail with a
subject
  *  1.3 -- BODY: HTML mail with non-white background
  *  0.8 -- BODY: Tells you to click on a URL
  *  0.8 -- BODY: Includes a URL link to send an email
  *  2.4 -- Contains phrases frequently found in spam
            [score:  14, hits: click here, credit card, one]
            [our, our list, this email, you must, you want,]
            [your email]
  *  0.5 -- Uses words and phrases which indicate porn (3)
  * -2.1 -- From and To the same address
X-Spam-Level: ********
X-Spam-Checker-Version: SpamAssassin 2.31 (devel $Id:
SpamAssassin.pm,v 1.94.2.2 2002/06/20 17:20:29 hughescr Exp
$)

Invalid User ID <#8172>
Mon 26 Aug 2002 02:17:54 PM UTC, comment #1: 


I fixed a bug after the release, but that only affected
doubling of Content-Type:.  You're getting duplicate
Subject: as well?

Dan Nelson <dnelson>
Group administrator
Mon 26 Aug 2002 10:39:48 AM UTC, original submission:  


Hi.... just upgraded to 0.1.2. Whenever I get an email
identified as spam, the header gets rewritten so I get
some duplicated entries. I get duplicate Subject: and
Content-Type: entries.
This wasn't happening with 0.1.1.

Regards
Garry

Invalid User ID <#8172>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follows 1 latest change.

Date Changed by Updated Field Previous Value => Replaced by
2002-08-26 dnelson Assigned toNone None

Back to the top

Powered by Savane 3.13-8ccc.
Corresponding source code