[Mimedefang] Spamassassin detailed score in message header

Alan Premselaar alien at 12inch.com
Wed Nov 29 20:22:13 EST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tim Boyer wrote:
>         action_change_header("X-Spam-Score", "$hits ($score) $names");
> 
> works great, and gives me the total score.  It would be great, however, if I
> could get more detail, e.g.,
> 
> X-Spam-Score: 8.152 (********) AWL,BAYES_99 (5.38),DCC_CHECK
> (2.10),DNS_FROM_RFC_ABUSE (0.32),DNS_FROM_RFC_POST (0.22),FORGED_RCVD_HELO
> (1.23),UNDISC_RECIPS (0.01)
> 
> Is there an easy way to do this?  Or could someone point me to where it's
> spelled out in excruciating detail in the docs and I missed it completely?
> 
> Thanks much,
> 

Tim,

 for what it's worth, I have a couple of pretty simple patches to
SpamAssassin that will produce test score results as above minus the
space between the name and the open parenthesis.

the patches require one additional configuration setting in your
sa-mimedefang.cf to basically turn on the option to have scores output
in that manner.

the only downside is that everytime I update SpamAssassin I have to
re-patch it.

If you're interested, contact me off-list and I'll send them.

Alan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFbjJDE2gsBSKjZHQRArXpAJ9hAOFE+IKEmZQE7pDEIt9R9rWKTQCg2jQR
MtnQX/qA6AruzXKVUXQGhjI=
=cgh+
-----END PGP SIGNATURE-----



More information about the MIMEDefang mailing list