procmail
[Top] [All Lists]

How to remove some text in the middle of a subject line

2004-03-10 13:59:24


I'm looking for a way to remove some text from the middle of a subject line.

So for example, the text I need to remove is:

[TEX1]

But it might be in the middle of a subject line like:

 TPS20001-34987 [TEX1] How do I change my config?

and in the end I need it to say:

 TPS20001-34987 How do I change my config?


So in the MATCH type things I've done before I know the \/ can grab what's after it but not sure how to word the syntax to look in front of it. I figure I'm going to have to do a match before and a match after then piece the 2 together in the final subject.

Any pointers?

Thanks,

-Chris


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