On Mon, 3 Dec 2001, Timothy J. Luoma wrote:
I have this recipe, which is designed to notice when someone sends me email
for the first time, put the mail in a special mailbox, and then add their
email address to a list, so that if they send me mail again, it won't be the
"first time"
Here is the recipe
ALLSENDERS=$PROCDIR/senders.txt
REPLYTO=`formail -rtzxTo:`
:0
* $ ! ? fgrep -i "$REPLYTO" "$ALLSENDERS"
{
:0c:
05-First-Timers
:0hia: .allsenders.lock
|/bin/echo "$REPLYTO" >> "$ALLSENDERS"
}
Is there a way in procmail to check the list like this:
cat $ALLSENDERS | fgrep -i "$REPLYTO"
instead of the way I have it above?
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail