> From: Bryan Hoover [mailto:[EMAIL PROTECTED]
> Sent: Saturday, January 03, 2004 7:05 PM
[...]
>
> #extract only the address part -- so that's the format addresses should
> appear in #mailing list address file too.
>
> HEADERTAGVAL=`formail -rztx To:`
>
> ISMAILINGLIST=no
>
> :0
> * ? grep -i -x -q -F $HEADERTAGVAL $ADDRESSFILE
> {
>   ISMAILINGLIST=yes
> }
>
> Tested.
>
> Notice in, HEADERTAGVAL=`formail -rztx To:`, there must be that space
> between the options, and the tag -- would not work on my system without
> it, and procmail tips page notes it as well.

Interesting. Haven't heard about that glitch before. Do you have a URL to
the tips page?

The only refinement that I'd add to the recipe above is to quote
$HEADERTAGVAL,
just in the unexpected event that the sender's address had a space in it, or
some such:

:0
* ? grep -i -x -q -F "$HEADERTAGVAL" $ADDRESSFILE
{
  ISMAILINGLIST=yes
}




-------------------------------------------------------
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

Reply via email to