You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by LuKreme <kr...@kreme.com> on 2004/07/20 08:08:13 UTC
rewrite_header
I have the following line in my local.cf:
rewrite_header Subject (Spam _HITS_)
but the subject header is being rewritten as
[Spam 8.0] instead of (Spam 8.0)
??
--
Try to realize it's all within yourself/No one else can make you change
Re: rewrite_header
Posted by Theo Van Dinter <fe...@kluge.net>.
On Tue, Jul 20, 2004 at 12:04:18PM -0700, Justin Mason wrote:
> > If anyone in charge is around, I'd request this be changed before the
> > final release to allow ()'s as SA always has.
>
> I'd suggest reporting this as a bug in the bugzilla. It does seem
> like a strange one to change, and sounds worth fixing.
I don't remember the details, but it was intentional if it's in the docs
(which it is).
A look at the log for Conf.pm shows it was done in r6085 by duncf to fix
bug 478 (rewrite from, to, or subject, not just subject...) It's there
from that point on.
My guess is that it was related to not wanting the rewrite to be
considered a comment/not wanting to have multiple comment levels, ie:
((SPAM 8.0)) since from and to do the paren encapsulation. So I'd say
for Subject, don't bother doing the paren->bracket thing. It's probably
a good idea for from and to to keep doing it though.
--
Randomly Generated Tagline:
"If we can't keep this sort of thing out of the kernel, we might as well
pack it up and go run Solaris." - Larry McVoy
Re: rewrite_header
Posted by LuKreme <kr...@kreme.com>.
On 20 Jul 2004, at 10:40, Adam Lanier wrote:
> LuKreme wrote:
> | I have the following line in my local.cf:
> |
> | rewrite_header Subject (Spam _HITS_)
> |
> | but the subject header is being rewritten as
> |
> | [Spam 8.0] instead of (Spam 8.0)
> |
> | ??
> |
> man Mail::SpamAssassin::Conf
>
> Parentheses are not permitted in STRING. (They will be converted to
> square brackets.)
Why was this changed? I have two years of spam with (Spam _SCORE) and
now it changes?
This is doubly annoying since my procmail recipes are setup to strip
[]'ed text (to remove all those annoying list name's that get dumped
into the subject line.
If anyone in charge is around, I'd request this be changed before the
final release to allow ()'s as SA always has.
--
#242755 <jshock221> a freudian slip is when you say one thing but
you're really thinking about a mother.
<Spadgeroonie> no, a freudian slip is sexy underwear your mother wears
Re: rewrite_header
Posted by Adam Lanier <ad...@krusty.madoff.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
LuKreme wrote:
| I have the following line in my local.cf:
|
| rewrite_header Subject (Spam _HITS_)
|
| but the subject header is being rewritten as
|
| [Spam 8.0] instead of (Spam 8.0)
|
| ??
|
man Mail::SpamAssassin::Conf
Parentheses are not permitted in STRING. (They will be converted to
square brackets.)
- --
Adam Lanier
Bernard L. Madoff Investment Securities LLC
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFA/Ur8yiJGTGcJL0cRAg2gAKCySGK0/ZMc7nc9KN64zx8nWF71wgCfVba+
AJx8WhQ7RQY6vqcBQ37nwZg=
=3+IK
-----END PGP SIGNATURE-----