procmail
[Top] [All Lists]

Re: Need regex-help: inverted word search

2004-11-05 13:14:38
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.

Thanks and best regards,

Andreas

____________________________________________________________
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>