On Mon, 2013-06-10 at 09:55 -0700, Brent Gardner wrote: > > For basics of writing SA rules, maybe look at > > http://wiki.apache.org/spamassassin/WritingRules
> Where's a good place to look if I want to go beyond the basics? The docs [1], lurking on this list, and possibly having a look at the stock rules. > The page listed above or copies of it flood google results. > > Example: For a long time I didn't know one could use || and ! in metas. Which is a prime example for reading the docs. :) > Optimizations like (?:) instead of (), {1,100} instead of *, a single > rule with lots of alternate word matches instead of several rules each > matching one word, etc. And that's being discussed in here about any time someone asks for specific RE help... [1] http://spamassassin.apache.org/full/3.3.x/doc/Mail_SpamAssassin_Conf.html -- char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4"; 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; }}}