procmail
[Top] [All Lists]

removing ]['s (and contents) from mailing list mail

2002-09-24 14:02:58
I seem to recall a recipe to remove the square brackets (and enclosed words) from the subject lines was discussed recently, but I cannot find the thread.

I think I have the sed expression, but don't know how to put that into a procmail recipe.

sed -e 's/\[.*\] //'

which would make "[Stupid crap] Real subject" into "Real Subject"

One problem I see already is that some lists append the [] crap to the subject. On the other hand, I don't mind if it's at the end of the Subject, so I doubt I'll trouble to fix this.

_______________________________________________
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>
  • removing ]['s (and contents) from mailing list mail, LuKreme <=