Ruud H.G. van Tol wrote Sunday, May 27, 2007 3:33 PM:
Dallman Ross schreef:
:0
* $ ^Subject:([$WS]*RE([(][0-9]+[)])*:(.*\<)?\/[^R0-9$WS:].*
| formail -I "Subject: RE: $MATCH"
The only thing I can see it doesn't quite do right is,
if there is a colon or series of colons between RE:'s
This does wrong when the original Subject value has initial
words starting with an R or a digit or a colon.
Damn. You're right.
:0 h
* $ ^Subject:\/([$WS]*Re([(][0-9]+[)])*:)+
* MATCH ?? Re.*Re
* $ ^Subject:$\MATCH\/.*
| formail -I "Subject: Re:$MATCH"
Very good. (Needs a "fw" flagset at the top.) I like it.
Thanks, Ruud.
Dallman
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail