procmail
[Top] [All Lists]

Re: Need regex-help: inverted word search

2004-11-05 16:52:41
On Fri, 5 Nov 2004, Andreas Schmidt wrote:

AS> strings? The problem is that any mail that reaches me contains my address,
AS> so it always matches
AS>     * To:(_dot_)*myname(_at_)server
AS> 
AS> Something like
AS> (5) * ! To:(_dot_)*myname(_at_)server
AS> does, therefor, not work.
AS> 


I think I understand what it is you want.  Approach this lateraly.  As you 
name will always be there, you want to catch emails with two instances of 
your domain:

:0
* ^to:(_dot_)*(_at_)example(_dot_)com(_dot_)*@example.com
/dev/null

Or you could use scoring to count the number of instance of example.com.


-- 
Alan


( Please do not email me AS WELL as replying to the list.  Please 
  address personal email to alan+1@ as lists@ is not read. A
  password autoresponder may be invoked if this email is very old. )


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