Here is one that I have. It also allows people to add themselves to my
white list. The last recipe is all than need if you want to keep it
simple.
# 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 G. Saroff, Sr. Mechanical Engineer
Varo LLC
2800 W. Kingsley Road
Garland, TX 75023-2048
(972)840-5119
fax(972) 840-5151
Opinions expressed are not those of Varo LLC
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail