David Stern <dstern(_at_)tsi-telsys(_dot_)com> writes:
I'm looking for a regular expression to remove a variable length string from
a subject but retain the rest of it eg
incoming could be something like:
hasdf dsjfhadfa ...KNOWN STRING.....
167jhjkd KNOWN STRING ...
and procmail should strip it to everything after and including KNOWN STRING.
This will do it provided `KNOWN_STRING ==> whatever' makes up the last part of
subject:
:0hf
* ^Subject:.*KNOWN_STRING
|sed 's/\(^Subject: \)\(.*\)\(KNOWN_STRING.*$\)/\1\3/'
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail