On Thu, 2011-05-26 at 15:02 -0400, Kris Deugau wrote: > Every so often we get a message or two stuck in our inbound mail queue > because it took too long for SA to process during mail delivery.
> However, we've just had a couple of *legitimate* messages get stuck for > essentially the same reason - a whole lot of pathologically bad HTML. Rings a bell. Such reports usually turned out to be caused by custom rules. Any custom rawbody rules, in particular ones matching HTML tags, or otherwise prone to trigger RE backtracking? (That is, may consume large sub-strings, before a following sub-pattern.) > Has anyone got any suggestions for decreasing the load SA imposes trying > to process one of these? Identify the bad boy. :) -- 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; }}}