[EMAIL PROTECTED] wrote: > /^Reply-to:\s*(<[-a-z0-9_.]+\@([-a-z0-9_]+\.)+[a-z]+>)\s+\1/i > > Underscore is not technically valid in a domain name but you do see > them in practice anyway. > > I'm not sure this is any better than what I originally posted, as I > haven't tested this properly. My originally proposed rule would be
Appears to work as you intended. I ran: $s="reply-to:<[EMAIL PROTECTED]> <[EMAIL PROTECTED]>"; if ($s=~/^Reply-to:\s*(<[-a-z0-9_.]+\@([-a-z0-9_]+\.)+[a-z]+>)\s+\1/i){ print "$&\n"; } As you allude in a subsequent follow-up, the "pattern" of email headers is a bit subjective :) -- but I'm studying the Perl. Bryan > prone to false positives in case somebody had the same token twice (or > more :-) at the beginning of their Reply-To:, like so: > > Reply-To: Ma Ma Ma Belle <[EMAIL PROTECTED]> > > Your mileage not included when stirred, etc. > > >> I'm guessing the multi-line appearance was simply due to word wraps in > >> Robert's mail program, and not actually there in the original headers. > > Oh, and even if the header was spread over two lines originally, SA > would have folded it back onto a single line before attempting to > match any rules. > > /* era */ > > -- > The email address era the contact information Just for kicks, imagine > at iki dot fi is heavily link on my home page at what it's like to get > spam filtered. If you <http://www.iki.fi/era/> 500 pieces of spam for > want to reach me, see instead. each wanted message. > > ------------------------------------------------------- > 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 -- Nothing in the world has more potential for beauty than woman. Nothing has more potential to destroy it, than the world. - (Anonymous) 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