spamass-milt-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: subject or content-type deleted instead of rewritten


From: Niki Waibel
Subject: Re: subject or content-type deleted instead of rewritten
Date: Thu, 09 Jan 2003 18:01:38 +0100 (MET)

the bad thing happens in:
        int assassinate(SMFICTX* ctx, SpamAssassin* assassin)
if you look at the following code it happens after the first
``update_or_insert()''.
===
  //
  // If SpamAssassin thinks it is spam, replace
  //  Subject:
  //  Content-Type:
  //  <Body>
  //
  //  However, only issue the header replacement calls if the content has
  //  actually changed. If SA didn't change subject or content-type, don't
  //  replace here unnecessarily.
  if (!dontmodify && assassin->spam_flag().size()>0)
    {
debug(1, "NIKI: assassinate(): 111s: %s\n", assassin->_subject.c_str());
debug(1, "NIKI: assassinate(): 111c: %s\n", assassin->_content_type.c_str());
          update_or_insert(assassin, ctx, assassin->subject(), 
&SpamAssassin::set_subject, "Subject");
debug(1, "NIKI: assassinate(): 222s: %s\n", assassin->_subject.c_str());
debug(1, "NIKI: assassinate(): 222c: %s\n", assassin->_content_type.c_str());
          update_or_insert(assassin, ctx, assassin->content_type(), 
&SpamAssassin::set_content_type, "Content-Type");
debug(1, "NIKI: assassinate(): 333s: %s\n", assassin->_subject.c_str());
debug(1, "NIKI: assassinate(): 333c: %s\n", assassin->_content_type.c_str());
===

with the debug code i've inserted i get:

Subject: TEST
Content-Type: TEST2
===
Jan  9 17:47:32 enterprise2 spamass-milter[705]: [ID 859652 mail.error] NIKI: 
assassinate(): 111s: TEST
Jan  9 17:47:32 enterprise2 spamass-milter[705]: [ID 859652 mail.error] NIKI: 
assassinate(): 111c: TEST2
Jan  9 17:47:32 enterprise2 spamass-milter[705]: [ID 124273 mail.error] NIKI: 
SpamAssassin::subject()
Jan  9 17:47:32 enterprise2 spamass-milter[705]: [ID 225090 mail.error] NIKI: 
SpamAssassin::set_subject()
Jan  9 17:47:32 enterprise2 spamass-milter[705]: [ID 442039 mail.error] NIKI: 
assassinate(): 222s: 
Jan  9 17:47:32 enterprise2 spamass-milter[705]: [ID 442039 mail.error] NIKI: 
assassinate(): 222c: TEST2
Jan  9 17:47:32 enterprise2 spamass-milter[705]: [ID 883855 mail.error] NIKI: 
SpamAssassin::content_type()
Jan  9 17:47:32 enterprise2 spamass-milter[705]: [ID 356579 mail.error] NIKI: 
SpamAssassin::set_content_type(text/plain)
Jan  9 17:47:32 enterprise2 spamass-milter[705]: [ID 666444 mail.error] NIKI: 
assassinate(): 333s: 
Jan  9 17:47:32 enterprise2 spamass-milter[705]: [ID 666444 mail.error] NIKI: 
assassinate(): 333c: text/plain
===

Content-Type: TEST2
Subject: TEST
===
Jan  9 17:49:52 enterprise2 spamass-milter[705]: [ID 859652 mail.error] NIKI: 
assassinate(): 111s: TEST
Jan  9 17:49:52 enterprise2 spamass-milter[705]: [ID 859652 mail.error] NIKI: 
assassinate(): 111c: TEST2
Jan  9 17:49:52 enterprise2 spamass-milter[705]: [ID 124273 mail.error] NIKI: 
SpamAssassin::subject()
Jan  9 17:49:52 enterprise2 spamass-milter[705]: [ID 225090 mail.error] NIKI: 
SpamAssassin::set_subject(*****SPAM***** TEST)
Jan  9 17:49:52 enterprise2 spamass-milter[705]: [ID 442039 mail.error] NIKI: 
assassinate(): 222s: *****SPAM***** TEST
Jan  9 17:49:52 enterprise2 spamass-milter[705]: [ID 442039 mail.error] NIKI: 
assassinate(): 222c: TEST2
Jan  9 17:49:52 enterprise2 spamass-milter[705]: [ID 883855 mail.error] NIKI: 
SpamAssassin::content_type()
Jan  9 17:49:52 enterprise2 spamass-milter[705]: [ID 356579 mail.error] NIKI: 
SpamAssassin::set_content_type()
Jan  9 17:49:52 enterprise2 spamass-milter[705]: [ID 666444 mail.error] NIKI: 
assassinate(): 333s: *****SPAM***** TEST
Jan  9 17:49:52 enterprise2 spamass-milter[705]: [ID 666444 mail.error] NIKI: 
assassinate(): 333c: 


niki, now looking for a fix...





reply via email to

[Prev in Thread] Current Thread [Next in Thread]