On Sun, 24 Apr 2005, Ruud H.G. van Tol <rvtol(_at_)isolution(_dot_)nl> wrote:
Gerald V. Livingston II schreef:
* ! ^From.*\"James\".*\<\*\*\*\*\*\*\*(_dot_)*\(_at_)(_dot_)*\>
"From followed by one or more of any character followed by "James"
followed by one or maor of any character followed by < followed by at
least 7 *'s followed by one or more of any character followed by @
followed by one or more of any character followed by >"
No, that would be:
* ^From:.*\"James\".*<\*\*\*\*\*\*\*+(_dot_)+(_at_)[^>]+>
because:
(1) something like "James" isn't likely in the 'From_', so test
only the 'From:'
(2) \< is a macro, that matches more than just <
(3) at least 7 *'s, so 7 or more *'s (the + means 1 or more)
(4) one or more of any character is .+
(5) there is no need to escape the @
(6) \> is the same macro as \<, that matches more than just >
If there can be only *'s before the @, as the example you showed,
you can use this:
* ^From:.*\"James\".*<\*\*\*\*\*\*\*+(_at_)[^>]+>
The following would catch exactly what's been written in compact form:
* ^From.+"James".+<\*{7}[^>]+@>
However, if a ':' is needed after 'From', then it should read
* ^From:.+"James".+<\*{7}[^>]+@>
Yours,
Hossein
____________________________________________________________
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