procmail
[Top] [All Lists]

removing verbiage from a Subject

2003-11-12 19:15:34
trolled the lists but couldn't find anything relevant... so here goes. Because we receive 1000's of legitimate cold call type emails from various domains, we can't reject any mail... so we add the phrase [SPAM] to suspect email before delivery allowing client side filtering if desired. The problem is that most users are too lazy to remove that phrase before forwarding the email onto a co-worker or business partner or, worse yet, replying to the customer. Obviously emails leaving the network would be nearly impossible to fix, but emails sent within the company will pass through our main .procmail script again.

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"

Thanks!


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