procmail
[Top] [All Lists]

Re: Help wit filtering recipe

2010-05-26 15:52:02
* Michelle Konzack <linux4michelle(_at_)tamay-dogan(_dot_)net> [05-26-10 16:44]:
Am 2010-05-26 14:58:38, hacktest Du folgendes herunter:
Hi i need to filter some emails with procmail but im new to this and
i dont know how to do it, i need
to do the following :

IF  the target email is "xxx(_at_)abc(_dot_)com" and the sender is 
"a(_at_)abc(_dot_)com"
or "b(_at_)abc(_dot_)com"
then the email needs to be delivered
else the email should be deleted

thats it

if anyone please can help me should be great.

    :0
    * ^To:(_dot_)*xxx(_at_)abc\(_dot_)com
    * ^From:.*(a|b)@abc\.com
    /dev/null


Thanks, Greetings and nice Day/Evening
    Michelle Konzack

I believe you have been somewhat hasty and a bit reckless here.  Above
will deliver mails *wanted* to /dev/null rather than the opposite.

:0
* ^To:(_dot_)*xxx\(_at_)abc\(_dot_)com
* !^From:.*(a|b)\(_at_)abc(_dot_)\com
/dev/null

Note: Not an expert and quite possibly wrong.

-- 
Patrick Shanahan         Plainfield, Indiana, USA        HOG # US1244711
http://wahoo.no-ip.org     Photo Album:  http://wahoo.no-ip.org/gallery2
Registered Linux User #207535                    @ http://counter.li.org
____________________________________________________________
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>