On Fri, 2009-01-23 at 18:30 +0000, RW wrote: > I'm having a problem whereby Spamassassin is sometimes being killed by > SIGPIPE before it's written-out the email to stdout, and then > returns a zero exit-code. > > Whilst I'd be keen to eliminate the SIGPIPE problem, the more important > problem is the return of the zero exit-code, [...]
Bug 6033, fixed in SVN, patch for 3.2.x attached. https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6033 -- 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; }}}