On Thu, 2010-07-15 at 06:58 -0700, Gnanam wrote:
> My problem is, the "spamc" client is not at all working and it is always
> returning  "0/0".  At the same time, if I use spamassassin script, it's
> working and is giving back spam score result.

That indicates an error. Did you start spamd?

You can use spamc -x, to get a meaningful exit code.

> Example:
> # spamc -R < mymailmessage.txt
> # spamassassin -t < mailmessage.txt
> 
> I believe that either some library is missing or some environment setting is
> missing.

Nope, spamc pretty much only passes STDIN to spamd.


> 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?

man spamc

Please DO read the docs. The -R you already used should do what you
want. In your case, it simply did not, because an error talking to spamd
occurred, and you are using the default of "safe fallback". In case of
an error, the message is passed back. See -x, again.


-- 
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; }}}

Reply via email to