procmail
[Top] [All Lists]

Re: Need regex-help: inverted word search

2004-11-05 13:23:22
On Fri, Nov 05, 2004 at 08:50:54PM +0100, Andreas Schmidt wrote:
On 2004.11.05 19:53, William Park wrote:
On Fri, Nov 05, 2004 at 07:10:45PM +0100, Andreas Schmidt wrote:

I sometimes get mails where other accounts on the same server are
listed in the To-header as well, e.g.:

   To: someone(_at_)server, myname(_at_)server, somebodyelse(_at_)server

Try
   :0
   * ^TO_[^(_at_)]*@server[^(_at_)]*@server[^(_at_)]*@server
   spam

Hmm, that looks interesting. Perhaps this might be even better:
      * ^TO_[^(_at_)]*@server([^(_at_)]*@server)+
as the number of recipients is not static.

I find that 3 is good enough indicator of spam.  So, testing for more is
redundant. :-)

-- 
William Park <opengeometry(_at_)yahoo(_dot_)ca>
Open Geometry Consulting, Toronto, Canada

____________________________________________________________
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

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