Bug 3189 - rewrite_header stopped working
Summary: rewrite_header stopped working
Status: RESOLVED FIXED
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: Libraries (show other bugs)
Version: SVN Trunk (Latest Devel Version)
Hardware: Other other
: P5 normal
Target Milestone: 3.0.0
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-18 09:10 UTC by Andrew A. Vasilyev
Modified: 2004-03-18 01:17 UTC (History)
0 users



Attachment Type Modified Status Actions Submitter/CLA Status

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew A. Vasilyev 2004-03-18 09:10:11 UTC
In local.cf I have 
rewrite_header Subject ***WORD***

In 3.0.0 of 2004-02-18 the Subject of spam messages was replacing
as usual. After installing 2004-03-18 (and several subversions ago)
this feature stopped working. Nothing new in Mail::SpamAssassin::Conf about it 
though.
Comment 1 Theo Van Dinter 2004-03-18 09:17:46 UTC
Subject: Re:  New: rewrite_header stopped working

On Thu, Mar 18, 2004 at 09:10:12AM -0800, bugzilla-daemon@bugzilla.spamassassin.org wrote:
> In 3.0.0 of 2004-02-18 the Subject of spam messages was replacing
> as usual. After installing 2004-03-18 (and several subversions ago)
> this feature stopped working. Nothing new in Mail::SpamAssassin::Conf about it 
> though.

I really hate it when people break my code ... ;)

fyi, "report_safe 1" works fine, but "report_safe 0" doesn't.  I'm looking
into it.

Comment 2 Michael Parker 2004-03-18 09:18:41 UTC
Subject: Re:  New: rewrite_header stopped working

On Thu, Mar 18, 2004 at 09:10:12AM -0800, bugzilla-daemon@bugzilla.spamassassin.org wrote:
> 
> In local.cf I have 
> rewrite_header Subject ***WORD***
> 
> In 3.0.0 of 2004-02-18 the Subject of spam messages was replacing
> as usual. After installing 2004-03-18 (and several subversions ago)
> this feature stopped working. Nothing new in Mail::SpamAssassin::Conf about it 
> though.

I can't reproduce this with HEAD using spamassassin or spamc.  How are
you calling SA?

Michael

Comment 3 Michael Parker 2004-03-18 09:21:16 UTC
Subject: Re:  rewrite_header stopped working

On Thu, Mar 18, 2004 at 09:18:42AM -0800, bugzilla-daemon@bugzilla.spamassassin.org wrote:
> 
> I can't reproduce this with HEAD using spamassassin or spamc.  How are
> you calling SA?
> 

Nevermind as felicity said, it's something with report_safe 0.

Michael

Comment 4 Andrew A. Vasilyev 2004-03-18 09:27:55 UTC
Subject: Re:  rewrite_header stopped working

On Thu, Mar 18, 2004 at 09:18:42AM -0800, bugzilla-daemon@bugzilla.spamassassin.org wrote:
> http://bugzilla.spamassassin.org/show_bug.cgi?id=3189
> 
> ------- Additional Comments From parkerm@pobox.com  2004-03-18 09:18 -------
> Subject: Re:  New: rewrite_header stopped working
> 
> On Thu, Mar 18, 2004 at 09:10:12AM -0800, bugzilla-daemon@bugzilla.spamassassin.org wrote:
> > 
> > In local.cf I have 
> > rewrite_header Subject ***WORD***
> > 
> > In 3.0.0 of 2004-02-18 the Subject of spam messages was replacing
> > as usual. After installing 2004-03-18 (and several subversions ago)
> > this feature stopped working. Nothing new in Mail::SpamAssassin::Conf about it 
> > though.
> 
> I can't reproduce this with HEAD using spamassassin or spamc.  How are
> you calling SA?

  The configuration is:

  spamd running as daemon,

  spamc called from scanspam.sh:

spamprep "$myCgate/$QueuePath" "$ReturnPath" "$Envelope" | spamc -t 60 -d XXXX -p XXXX -s 666000 -f >> "$myCgate/Submitted/$NewFile"

  spamprep simply cuts off the CGP headers of queue file.

  This is a strange error because this scheme was working properly for
  year (2.5x/2.6x/3.0.0).
________
	ANDY

>> Michael
> 
> 
> 
> 
> 
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.

Comment 5 Andrew A. Vasilyev 2004-03-18 09:31:24 UTC
Subject: Re:  rewrite_header stopped working

On Thu, Mar 18, 2004 at 09:17:47AM -0800, bugzilla-daemon@bugzilla.spamassassin.org wrote:
> http://bugzilla.spamassassin.org/show_bug.cgi?id=3189
> 
> ------- Additional Comments From felicity@kluge.net  2004-03-18 09:17 -------
> Subject: Re:  New: rewrite_header stopped working
> 
> On Thu, Mar 18, 2004 at 09:10:12AM -0800, bugzilla-daemon@bugzilla.spamassassin.org wrote:
> > In 3.0.0 of 2004-02-18 the Subject of spam messages was replacing
> > as usual. After installing 2004-03-18 (and several subversions ago)
> > this feature stopped working. Nothing new in Mail::SpamAssassin::Conf about it 
> > though.
> 
> I really hate it when people break my code ... ;)
> 
> fyi, "report_safe 1" works fine, but "report_safe 0" doesn't.  I'm looking

  You are right: we have "report_safe 0" and can't change this :(((

> into it.

  Many thanks!
________
	ANDY


> 
> 
> 
> 
> 
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.

Comment 6 Theo Van Dinter 2004-03-18 10:17:29 UTC
ok, fixed in head. :)   r9592
Comment 7 Andrew A. Vasilyev 2004-03-18 14:25:09 UTC
Subject: Re:  rewrite_header stopped working

On Thu, Mar 18, 2004 at 10:17:30AM -0800, bugzilla-daemon@bugzilla.spamassassin.org wrote:
> http://bugzilla.spamassassin.org/show_bug.cgi?id=3189
> 
> felicity@kluge.net changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>              Status|NEW                         |RESOLVED
>          Resolution|                            |FIXED
> 
> 
> 
> ------- Additional Comments From felicity@kluge.net  2004-03-18 10:17 -------
> ok, fixed in head. :)   r9592

  THNX!!!
  One silly question: why do you use "[ \t]*", not "\s*"?
________
	ANDY


> 
> 
> 
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.