procmail
[Top] [All Lists]

Re: Sorting out *this* list.

1997-06-06 10:29:00
Eli the Bearded writes on 6 June 1997 at 11:03
       * ^X-mailing-list: 
<procmail(_at_)informatik\(_dot_)rwth-aachen\(_dot_)de>
I find that I hardly ever do this for email addresses...it's a bit of
extra clutter and the the chance for false-matches is just about zero
(are there "om" (com), "du" (edu), "ov" (gov), "rg" (org), "nt" (int),
or "et" (net) top-level domains?).

I fail to see how those TLDs enter into it, but om (Oman), nt (Neutral
Zone), and et (Ethiopia) are valid. The real advantage of word boundry

I was talking about escaping the dots, not word-boundaries.

Given the above valid TLDs, there is a chance some regexps w/o the
'.'s escaped could inadvertently match the wrong thing - that is
".*.om" matching "host.com" instead of the intended "host.om".
Properly escaping the '.' solves this (as well as something more
restrictive like "[a-z0-9]*" instead of ".*").

Nevertheless, for most cases, I don't get pedantic and just use the
address as-is - w/o escaping the dots, even though that may not be
100% correct.

   Dan
------------------- message is author's opinion only ------------------
J. Daniel Smith <DanS(_at_)bristol(_dot_)com>        
http://www.bristol.com/~DanS
Bristol Technology B.V.                   +31 33 450 50 50, ...51 (FAX)
Amersfoort, The Netherlands               {info,jobs}(_at_)bristol(_dot_)com

<Prev in Thread] Current Thread [Next in Thread>