Bryan Hoover wrote: > HEADERTAG=From > ADDRESSFILE=/usr/home/bhoover/listreply
Use $MAILDIR here? ADDRESSFILE=$MAILDIR/listreply > :0i > HEADERTAGVAL=|$FORMAIL -zx$HEADERTAG | tr -d "\n" | tr -s " " > > * ? grep -i $HEADERTAGVAL $ADDRESSFILE I like it! Much more efficient than listing all of the addresses out. But there is some room for false hits. Wouldn't the -x option to grep be appropriate there? And it probably should be quiet too. And probably you don't want to use regular expressions (but maybe you do). > * ? grep -F -q -x -i $HEADERTAGVAL $ADDRESSFILE Here is the key for the list: -F fgrep functionality, no REs so '.' matches a literal '.'. -q quiet, no output, just the return code -x exact match on the entire line -i ignore case Bob ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk