On Thu, 2009-09-17 at 23:07 +0200, Karsten Bräckelmann wrote: > > Can you help me writing these ? > > Well, here are two UNTESTED and ad-hoc written rules, to be used in a > meta as I previously outlined. The first IP variant in this case matches > an entire /24 network, the RDNS variant matches any Hotmail blu0 host. > Both are pretty much examples and likely need to be adjusted. > > header HOTMAIL_IP_TO_MX [...] > > header HOTMAIL_RDNS_TO_MX [...]
Whoops! Since these are meant to be used in metas and not score anything on their own, both these example rules should use rule names starting with a double underscore -- to make them non-scoring sub-rules. header __NON_SCORING_EXAMPLE [...] -- char *t="\10pse\0r\0dtu...@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; }}}