Robert Allerstorfer schreef:
* $ ^to:[$WS]+\/.+
That is not a good way to do it. Because \/ is "greedy to the left", the
"[$WS]+" is equivalent to just "[$WS]", so you can end up with a $MATCH
that starts with whitespace. (And if there would be no whitespace
following the colon, $MATCH would not be changed.)
This is what everybody else uses:
* $ ^To:.*\/[^$WS].*
To include the obsolete formats as mentioned in RFC 2822:
* $ ^To[$WS]*:.*\/[^$WS].*
--
Grtz, Ruud
____________________________________________________________
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