procmail
[Top] [All Lists]

Re: Check whitelist file and if not there add to whitelist

2005-08-21 09:12:22
In your message dated Sat, 20 Aug 2005 15:54:15 -0400, D said that ...

A couple of caveats. There are different grep implementations, so
this
could be unique to GNU grep. Also, my software is pretty old, so
this
behavior may have changed with more recent versions. That said,
the
obvious question is, are there any blank lines in
$HOME/whitelist?

No blank lines, I've sorted and checked and made double sure there's no
blank bottom line.

This recipe worked until I took out the bottom deliver portion:

:0
* ?formail -x"From:" -x"Sender:" \
  -x"Reply-To:" -x"Return-Path:" \
| fgrep -is -f $USERDIR/whitelist
{          
        :0 hif
        | formail -A"X-Puremail: User Whitelist"
        
        :0:
        $DELIVER
}

Don





-- 
Best Regards,

Tim Rice
---------------
Phuket Thailand




____________________________________________________________
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