procmail
[Top] [All Lists]

Re: testing & regexp nonmatch

2001-07-23 16:19:35
John Conover <conover(_at_)rahul(_dot_)net> writes:
Hi Philip. How about

   ^TO_(_dot_)+(_at_)somedomain(_dot_)com

to make sure a message is to someone in somedomain.com?

Remove the ".+"?

I suppose the 'best' thing to insert would be "[-a-z0-9_.]+", as that'll
keep it from matching on silly route addresses:

        To: Bob <@somedomain.com:bob(_at_)else(_dot_)where(_dot_)com>

It'll also be slightly more efficient than ".+".  The other possibility is
to simply leave out the '@', ala:

        * ^TO_somedomain\.com

That might be more accepting than you want though.


Philip Guenther
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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