procmail
[Top] [All Lists]

Re: ^TO_

2001-09-08 23:28:36
Steve Sykes <ssykes(_at_)emirates(_dot_)net(_dot_)ae> writes:
I am using this recipe for spam filtering in spam.rc file.  My problem is
that I need to allow mail for two different users.  How do I add a second
address to this recipe?

:0
* ! ^TO_user(_at_)domain1(_dot_)com
$TRASH

Just use parens and alternation ('|'):

        :0
        * ! ^TO_(user(_at_)domain1\(_dot_)com|otheruser(_at_)domain2\(_dot_)com)
        $TRASH

If they're in the same domain, then:
        :0
        * ! ^TO_(user|anotheruser)@domain1\.com
        $TRASH


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>