On Wed, 2009-04-01 at 11:23 +1300, Andrew Bruce wrote:
> Is it possible to have a header, or in X-Spam-Status always show the
> individual scores for each of the test performed against a particular email
> (whether it is tagged as spam or not)? 
> 
> I see that when using MailScanner with SpamAssassin this always happens,
> but cannot replicate the same for a straight SpamAssassin installation. 
> 
> This is an example of what I get in an emails source from MailScanner and
> would like to replicate in SpamAssassin: 
> X-MailScanner-Spam: not spam, SpamAssassin (not cached,
>  score=4.616, required 5, BAYES_40 -0.18, DCC_CHECK 4.50,
>  HTML_MESSAGE 0.00, RDNS_DYNAMIC 0.10, SARE_HTML_USL_A 0.20) 

The option add_header all [1] along with the _TESTSSCORES(,)_ [2]
Template instead of the default _TESTS(,)_ should do. You can either add
that as a new, custom header or overwrite the default Status header.


[1] 
http://spamassassin.apache.org/full/3.2.x/doc/Mail_SpamAssassin_Conf.html#basic_message_tagging_options
[2] 
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; }}}

Reply via email to