On Thu, 2010-07-15 at 17:21 +0300, Jari Fredriksson wrote: > > Also, how do I print only "Content analysis details" from "spamassassin" > > command-line tool by suppressing the whole mail message from being printed? > > Is there any option that controls this? > > Not possible as far as I know. SpamAssassin's idea is to be a *filter*, > which means it possibly adds to the original and never removes anything.
Correct for spamassassin, but possible with spamc. Which the OP wants to use anyway. See the -c, -r, -R and -y options in man spamc. By default, spamc acts as a filter, but this behavior is configurable. -- 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; }}}