On Tue, 2009-07-14 at 12:33 -0500, McDonald, Dan wrote: > On Tue, 2009-07-14 at 16:13 +0100, Steve wrote: > > This is very pretty; > > > > X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.3379 > > Rule breakdown below > > pts rule name description > > ---- ---------------------- > > -------------------------------------------------- > > 0.00 NO_REAL_NAME From: does not include a real name > > 1.58 MISSING_HEADERS Missing To: header > > 0.00 TO_CC_NONE No To: or Cc: header
Heh, that actually looks like the _SUMMARY_ template [1], meant for *body* reports, injected with add_header into the headers, where's it's actually not meant to be... Probably with some custom clear_report_template and report settings. See 10_default_prefs.cf. Also, probably with report_safe 0 set. > > Can we change the header layout with SA to format it similar to this? You can, I guess -- even without code changes. > You don't like the default?: > X-Spam-Report: > * 2.0 AE_GBP BODY: Mentions hundreds of thousands (or millions) of > British > * pounds The _REPORT_ template, used with report_safe 0. I believe I posted more details on always using the Report header, even with report_safe != 0 just a few weeks ago... > You could tweak it a bit on line 2166 of PerMsgstatus.pm [1] http://spamassassin.apache.org/full/3.2.x/doc/Mail_SpamAssassin_Conf.html#template_tags -- 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; }}}