On 6-Jun-2009, at 02:01, mehma sarja wrote:
Trying to get a whitelist going.
(I think Sean wrote this whitelist originally, I mucked it up)
:0 h
CLEANFROM=|formail -IReply-To: -rtzxTo:
WHITELIST=$HOME/.friends
# we require a trailing space or tab after the address match, whether an
# mbox is specified or not.
ISLISTED=`grep -i "^$CLEANFROM " $WHITELIST`
# This recipe will set VARIABLEFOLDERNAME ONLY if there is a mailbox
# defined in the whitelist data file. You can set a default above
here, or
# check for a blank VARIABLEFOLDERNAME elsewhere.
:0
* ISLISTED ?? ^[^ ]+[ ]+\/[^ ]+
.$MATCH/
:0E
* ! ISLISTED ?? ^^^^
.Whitelist
$ cat .friends:
Fred(_at_)example(_dot_)com Friends.Fred
Alice(_at_)example(_dot_)com Friends.Alice
George(_at_)example(_dot_)com Friends.George
Sally(_at_)example(_dot_)com Friends
Mike(_at_)example(_dot_)com Friends
Brad(_at_)example(_dot_)com
Mitch(_at_)example(_dot_)com Family.Mitch
Oscar(_at_)example(_dot_)com Family
Meg(_at_)example(_dot_)com Family.Mom
Ziggy(_at_)example(_dot_)com Family.Dad
Debbie(_at_)example(_dot_)com
(the lines without a mailbox name have a trailing space, as specified
in the comments above)
--
Support bacteria - they're the only culture some people have.
____________________________________________________________
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