On May 27, 11:04pm, Paul Tomko wrote:
Subject: Re: my whitelist strategy - feedback welcome
On Wed, 27 May 1998, Nancy this-address-is-valid McGough wrote:
Here's the whitelist strategy I'm using. All feedback is welcome.
First I filter my mailing list messages. Then any message from someone
listed in my whitelist gets put into my IN_whitelist folder using this
recipe:
:0:
* ? formail -rtzxTo: | fgrep -i -f $HOME/Procmail/whitelist
IN_whitelist
I tried to adopt this into a similiar strategy for a blacklist, but
the log file comes back with a program failure on the the line
with formail on it. I'm not sure why, even if I make the file
world readable, I still get the error.
Paul
Hi,
I use a slightly different setup, and it allows for someone to
automatically add themselves to my white list.
It's based on, * ? (formail -xFrom:) | fgrep -i -f $GOLIST, as opposed
to the * ? formail -rtzxTo: | fgrep -i -f $HOME/Procmail/whitelist that you
folks use.
=====================Recipes Follow==========================
# The next two repipes check adds anyone who has included the password
# to the approved list
# This one sees if someone hwo has a magic cookie has already been
# entered. If so, tell them that they are in.
:0c
* ^Subject:.*givematthewgsaroffacookie
* !^X-Loop: msaroff(_at_)pca\(_dot_)net
* ? (formail -xFrom:) | fgrep -i -f $GOLIST
| (formail -r \
-A "X-Loop: msaroff(_at_)pca(_dot_)net" \
-A "Precedence: junk"; \
echo "Hi,";\
echo " In my last message, I said that you would be AUTOMATICALLY";\
echo "added to the approved list if you sent a message with the";\
echo "password.";\
echo " Well, you have been added, so you don't have to use the";\
echo "password any more.";\
echo " ";\
echo "--Matthew Saroff";) | $SENDMAIL -t -oi
:0c:
* ^Subject:.*givematthewgsaroffacookie
* !^X-Loop: msaroff(_at_)pca\(_dot_)net
* ! ? formail -xFrom: | fgrep -i -f $GOLIST
|formail -rtzxTo: >> $GOLIST
# This will send anything with my magic ccookie directly to my
# inbox
:0:
* ? (formail -xFrom:) | fgrep -i -f $GOLIST
$DEFAULT
--
--
Matthew Saroff
Do not reply directly to this message. Reply to
msaroff(_at_)pobox(_dot_)com