Am 2006-07-05 12:36:42, schrieb Eric Wood:
officiallist="art eric etc.........."
TO_list="flores henderson chamberlain art holbrook"
For EmailName in TO_list
if EmailName not in officiallist
then
is_spam=1
fi
next
:0
* ? echo "flores henderson chamberlain art holbrook" |grep -i -w $USER
ok_folder/
I use this excessivly... Please note, the -i id "case insensitive" and
the -w is the word-regexp which mean, it does match only the whole word
exactly, it makes the difference if you
echo "test1 test2 test3 test4 test" |grep -i -w "test"
It will not fine test1 through test4 but "test"
Oh yes, if your list goes to long, you can use a psql call. I have
to check 17.500 $USERS... taks around 0.7 seconds over the Net.
Greetings
Michelle Konzack
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSM LinuxMichi
0033/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
____________________________________________________________
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