On Tue, 2010-10-19 at 13:09 -0200, Pedro Padron wrote:
> I was messing around with the spamd/spamc protocol, and I saw that the
> SYMBOLS method only return test names.
> However, it would be nice to be able to get also the individual test
> score and it's description, what do you think?
Without digging deep into this right now, and without a sufficient dose
of caffeine...
Isn't that what the spamd protocol REPORT command does?
SYMBOLS -- Check if message is spam or not, and return score plus list
of symbols hit
REPORT -- Check if message is spam or not, and return score plus report
--
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; }}}