Rewriting Subject line?

p at dirac.org p at dirac.org
Wed Sep 24 04:35:19 CEST 2003


hi shawn,

if you filter mail using bogofilter (as in ":0f:"), the mail is still
available for processing in your procmailrc file.

you can place a recipe after the bogofilter that looks for mail that was
classified as spam.  you can use formail to rewrite the subject.

at the very least, you can write your own perl script to do that.  write
something that takes an email on stdin, looks for /^Subject:\W+(.*)$/
before the first blank line, then you can write the email out line by
line, but you can munge the subject, like print "Subject: [[[ SPAM ]]]
(was: $1)\n";

pete



On Tue 23 Sep 03,  1:46 PM, Shawn Barnhart <swb at grasslake.net> said:
> Is there any way to rewrite the subject line when processing a message that
> scores as spam?
> 
> The x-bogosity header is fine if you have a mail client that can filter on
> that, but if you're using one that can't, it effectively nullifies
> client-side filtering.

-- 
GPG Instructions: http://www.dirac.org/linux/gpg
GPG Fingerprint: B9F1 6CF3 47C4 7CD8 D33E 70A9 A3B9 1945 67EA 951D




More information about the Bogofilter mailing list