spamassassin-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karsten Br├Ąckelmann <guent...@rudersport.de>
Subject Re: add_header format
Date Fri, 10 Jan 2014 00:21:47 GMT
On Tue, 2014-01-07 at 07:29 -0600, Mark Chaney wrote:
> I am using spamassassin standalone and I am trying to figure out how to 
> duplicate this format that I would normally get from my servers that 
> user amavis or mailscanner. How can I get a format like so? Ive read the 
> manual, but havent really figured it out. I also have no use for the 
> spam-checker-version

The X-Spam-Checker-Version header is added by SA unconditionally, since
it provides vital data for support. That header can not be removed.

> X-Spam-Flag: YES
> X-Spam-Score: 14.176
> X-Spam-Level: **************
> X-Spam-Status: Yes, score=14.176 tagged_above=-10 required=5
> 	tests=[AWL=-1.500, BAYES_95=4.5, DATE_IN_PAST_06_12=1.543,
> 	HTML_MESSAGE=0.001, KAM_SOLAR=3.5, MIME_HTML_MOSTLY=0.428,
> 	MPART_ALT_DIFF=0.79, NUMERIC_HTTP_ADDR=1.242, RDNS_NONE=0.793,
> 	SO_RDNS_UNKNOWN=0.35, SPF_HELO_SOFTFAIL=0.732, SPF_SOFTFAIL=0.665,
> 	T_REMOTE_IMAGE=0.01, URI_HEX=1.122] autolearn=no

The following SA configuration mimics the Amavis Status header. Mind the
line wrap and extra indentation added for readability.

  add_header all Status  _YESNO_, score=_SCORE()_ required=_REQD_
                         tests=[_TESTSSCORES(, )_] autolearn=_AUTOLEARN_

The tagged_above value is an Amavis thing, not applicable for SA. As I
understand, the important bit you're after is the _TESTSSCORES(, )_
Template Tag anyway -- note the custom separator. See

  http://spamassassin.apache.org/doc/Mail_SpamAssassin_Conf.html#template_tags

for more details about the Template Tags used. Also see the M::SA::Conf
documentation for the add_header option.


-- 
char *t="\10pse\0r\0dtu\0.@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;
}}}


Mime
View raw message