procmail
[Top] [All Lists]

Problem with matching From .net.com and others

1998-01-06 07:49:59
Hi...

I'm trying to match on email From something like any one of the
following:
someone(_at_)test(_dot_)net(_dot_)com
someone(_at_)test(_dot_)com(_dot_)com
someone(_at_)test(_dot_)com(_dot_)gdc(_dot_)com
someone(_at_)test(_dot_)com(_dot_)esun19(_dot_)gdc(_dot_)com

Here's what I've got so far in the recipe...
:0
<snip several other expressions>
* 100^1 ^From.*\.(net|com|edu).*\.com
<snip action>

The From line is:
From owner-ANCHORDESK_INBOX(_at_)ISBLISTS(_dot_)ZDNET(_dot_)COM  Mon Jan  5 
14:09:56 1998
The From: line is:
From: "L-Soft list server at ISBLISTS.ZDNET.COM (1.8c)"
<LISTSERV(_at_)ISBLISTS(_dot_)ZDNET(_dot_)COM>

It appears the 'From:' line is the one that gets matched, and
that 'NET.COM (1.8c).....ZDNET.COM' is the part matched.
I have switched over to using
* 100^1 ^From.*\.(net|com|edu)[A-Za-z.]*\.com
This will probably work.

Anyone see a better solution?

Thanks,
Laurence
-- 
No advertising email will be accepted, nor is any such mail
solicited.

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