procmail
[Top] [All Lists]

Re: editing headers

2003-09-18 15:23:52
At 14:56 2003-09-18 -0700, Ted Baltz wrote:

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.

Once in a while, it'd be a treat if people bothered to check the archives -- this particular request has been covered a number of times in recent months WRT SpamAssassin doing the very same thing.

This should work:

:0fh
* ^Subject:[    ]*\[SPAM:[0-9]*\][      ]*\/[^  ].*
| formail -I"Subject: $MATCH"

---
 Sean B. Straw / Professional Software Engineering

 Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.


_______________________________________________
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>