procmail
[Top] [All Lists]

Re: removing verbiage from a Subject

2003-11-13 15:19:05
At 12:58 2003-11-13 -0700, the Kreme filled one wrote:

:0
* ^Subject:(.*\<): [spam] \/.*
| formail -I "Subject: $MATCH"

or

:0
* ^Subject:(.*\<)(re|fwd): [spam] \/.*
| formail -I "Subject: $MATCH"

Both of which are as equally imperfect as the sed solution I presented, in your case, you're going to DITCH everything before the [SPAM] tag - that indcludes any identifier that it is a reply, forward, or whatever.

And, BTW, you need to escape at least the opening bracket of the [spam], otherwise, it is interpreted as a CHARACTER CLASS.

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