Gary Funck wrote:
> 
> > 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 line to search for reads:

HEADER = `$FORMAIL -X ""` # The space after the X is vital.

http://pm-doc.sourceforge.net/pm-tips-body.html

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

The reason being, I assume, is though it wouldn't match anyway, the
quotes would prevent an error.

Bryan

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

-- 
As a rule I sit quite still, but whenever I move I make a huge leap to
the horror of all those to whom I am bound by the tender bonds of
kinship and friendship. - (Soren Kierkegaard - Either/Or)

http://www.wecs.com/content.htm

This signature file is generated by Pick-a-Tag !
Written by Jeroen van Vaarsel
http://www.google.com/search?hl=en&ie=ISO-8859-1&q=pick-a-tag



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