procmail
[Top] [All Lists]

editing headers

2003-09-18 15:08:03
I'd like to have procmail invoke something to edit the Subject: header
of incoming mail.  We've got this site-wide spam filter (puremessage)
that not only puts in a X-blahblahblah header with its spam probability
estimate, but it also prepends the subject of high-probability-spam
messages with [SPAM:#] (with some number of #'s from 1 to 5).

I'd like to remove this junk, as its redundant and often wrong.  The
X-blah headers are of course fine, and I filter on them.

Basically, I want to turn "Subject: [SPAM#{1,5}] blah blah blah" into
"Subject: blah blah blah".  Is there an easy / fast way to do this?  I
am no sed expert!

Thanks in advance!

-- 
 t e d    b a l t z  . . . . . . . . . . e a b a l t z @ s o p h o n t . n e t

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>