> > The third marked part feels incorrect as well. Do you really
> > want chars there? This can result in FP with (sub)-domains
> > ending with the given TLDs, like "foo.de.edu".
>
> RE: the third part. I see from fields ending in " and ) so I wanted a
> complete wildcard here (though now im thinking [^\w] may have worked
> well too?). After re-reading the ? option, I realize why I did this
> because ? means zero or one time. So .?$ matches zero or 1 character
> at the end of the line after the expression. So it shouldn't FP on
> foo.de.edu. Right?
Yes, you are right. After sending the mail I realized, I was
hallucinating an additional asterisk. Sorry.
> > >From =~ /[EMAIL PROTECTED](nl|ie|de|...|ar)>?$/
> >
> > The above RE will only trigger on TLDs that are at the end of
> > the From: header (no real name) or ending with the optional
> > ">" (with real name).
>
> When I read this RE, it says match @.(nl|ie|de|...|ar) at the end of
> the line. So it wouldn't match @foo.com.de. Am I missing something?
Gah, I failed to include an asterisk after the dot. Should have been
"[EMAIL PROTECTED]" in deed. Again, sorry. Seems I need more coffee... ;)
> > > I apologize if anyone from the list is from any of these countries,
> > > please don't take it personally.. ;)
> >
> > Although this is not SPAM, I get added half a point. Spammy me... ;-)
>
> Spamassassin scored you 2.5 points for saying "this is not SPAM." :)
ROFL. This will get the additional points again then...
However, it is *not* a good idea to treat lists discussing SPAM by SA. I
highly recommend to not filter mails from this list through SA.
> Thanks for the help! I've learned more about regex in the past 20
> mins then I have reading regex guides for 2 days.
You're welcome. And you fond my flaws easily... ;)
...guenther
--
char *t="[EMAIL PROTECTED]";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}