On Fri, Oct 03, 2008 at 07:18:19AM -0700, Professional Software
Engineering wrote:
*
^To:.*(jazzbucle(_at_)lotus[(_dot_)]domain[(_dot_)]com|jazzbucle(_at_)es[(_dot_)]domain[(_dot_)]com)
If you want to match DOTS, rather than putting them into a
character class, just escape them properly:
\.
Here I disagree. Not vehemently, but I disagree, nevertheless.
Both will work to give the same result. A slash has many other
nuanced uses and sometimes has to be quoted -- e.g., when it's the
first character on the right of a comparison expression:
* FOO ?? \.ar
will match FOO when its value was "bar"; so we'd need, there,
* FOO ?? ()\.ar
or something equivalent.
Here's the recited proof:
4:40pm [~/Mail] 553[0]> cat rc
FOO = bar
:0
* FOO ?? \.ar
{ yes }
4:40pm [~/Mail] 554[0]> procmail -m DEFAULT=/dev/null VERBOSE=y rc <
/dev/null
procmail: [15708] Fri Oct 3 16:40:34 2008
procmail: Assigning "MAILDIR=."
procmail: Rcfile: "rc"
procmail: Assigning "FOO=bar"
procmail: Match on "\.ar"
procmail: Assigning "yes"
procmail: Assigning "LASTFOLDER=/dev/null"
procmail: Opening "/dev/null"
Folder: /dev/null 0
A dot expressed as a char-class is less ambiguous, and often much
easier to read. I use such wherever I can. I have seen experienced
hard-core high-level-language programmers do the same and support the
syntax.
The rest of what Sean said, I concur with fully.
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