procmail
[Top] [All Lists]

Re: Whitelists without grep? (file)

2003-03-12 13:36:57
On Wed, Mar 12, 2003 at 02:21:47PM -0500, Paul Chvostek wrote:

I use this all the time:

      :0
      * ^From:[^(_at_)]+@\/[a-z0-9.-]+
      * ? grep -qi "^$MATCH$" $HOME/.whitelist
      { whitelisted=yes }


Why not use the -x option to grep and avoid the need for the $ at the end?
I sometimes use

        * ? fgrep -qsix -e "$MATCH" path/to/whitelist

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