procmail
[Top] [All Lists]

Re: removing verbiage from a Subject

2003-11-13 13:23:36
On 12 Nov 2003, at 18:57, Steffan Vigano wrote:
How could I cleanly remove this marking from email matching a certain return address? example:

 original subject = "hey now"
 marked subject = "[SPAM] hey now"
 forward subject = "fwd: [SPAM] hey now"   (many variations of 'fwd')
 delivered  subject if sender is *(_at_)boothcreek(_dot_)com = "fwd: hey now"

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

or

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


--
There's a race of men that don't fit in,
A race that can't stay still
So they break the hearts of kith and kin,
And they roam the world at will.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

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