procmail
[Top] [All Lists]

Re: Reading from a whitelist

2003-04-17 15:22:54
On Thu, Apr 17, 2003 at 03:45:39PM -0400, Doug Essinger-Hileman wrote:

I have just started using procmail to filter mail into folders, which 
I access from a PC using IMAP. There is still one recipe problem I 
cannot solve: checking against a whitelist. This is the recipe I am 
using, which I borrowed from one internet page or another:

* ? formail -x"From" -x"From:" -x"Sender:"\
   | egrep -is -f ~/Procmail.whitelist
Inbox

It seems not to be working, as the log is reporting:

Skipped "* ? formail -x"From" -x"From:" -x"Sender:"\"
Skipped "   | egrep -is -f ~/Procmail.whitelist"
Skipped "basicdirectory"

Can someone please help this beginner?

Your recipe is incomplete.  Recipes need to start with

        :0

Since your action is to save to a file, you also want a lockfile.
Hence

        :0:
        * ? yourstuff
        Inbox


Btw, you probably want fgrep -f rather than egrep.

-- 
dman

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