procmail
[Top] [All Lists]

Re: Problems filtering mail addresses

2010-10-13 09:05:41
* Jostein Berntsen wrote:
:0
* ^TO_van-m(_at_)yahoogroups\(_dot_)com
* ^TO_Van-M(_at_)yahoogroups\(_dot_)com
* ^TO_Van-M(_at_)nic\(_dot_)surfnet\(_dot_)nl
* ^TO_van-l(_at_)yahoogroups\(_dot_)com
* ^TO_van-info(_at_)yahoogroups\(_dot_)com
* ^TO_van-l(_at_)nic\(_dot_)surfnet\(_dot_)nl
* ^TO_van-info(_at_)nic\(_dot_)surfnet\(_dot_)nl
* ^TO_van.*
* ^TO_VAN.*
* ^Subject: Van-.*
innboks/VAN/

Did that deliver *any* messages to that box at all? I'd be quite
surprised: If you specify several conditions this way, the action is
only executed if *all* of them are satisfied, so the message would have
to be sent to van-m(_at_)(_dot_)(_dot_)(_dot_) AND 
van-l(_at_)(_dot_)(_dot_)(_dot_) AND van-info(_at_)(_dot_)(_dot_)(_dot_) to 
trigger the
action here.

Ruud already showed scoring as the way to implement "or" for conditions;
just try to refine the conditions or add further ones to suit your
needs. (By the way, procmail's matching is case-insensitive by default,
so some rules in your original recipe are redundant.)

/HW

-- 
Holger Wahlen, Cologne, Germany
____________________________________________________________
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>