On Tue, 2010-10-19 at 12:07 -0400, Kevin A. McGrail wrote:
> > 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

Since these are actually described right next to each other -- Pedro,
you're looking into the spamd protocol, so I assume you did find the
spamd/PROTOCOLS file in the source?


> I was going to say the same thing.

Including the caffeine disclaimer? ;)

Pedro, just checked some details and it appears indeed to be what you
asked for -- almost. The main difference being the report template's
default content, which includes a "detection" disclaimer and content
preview.

With the following local.cf options, the output should look like what
you wanted.

  clear_report_template
  report _SUMMARY_

Also see 10_default_prefs.cf, which defines the default being overridden
here. Basically, that's a minimal report header, getting rid of
everything but the summary.


When using this with spamc, it's the -r or -R option. :)

Oh, and if you really want a CSV separated output, it should be possibly
to write a plugin that provides a custom Template Tag to be used instead
of the default _SUMMARY_, without hacking the spamd source itself.


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