On Tue, 2010-02-16 at 15:22 -0800, tonjg wrote:
> I've got a feeling that the spamassassin on my machine is improving in the
> way it recognises spam but I'd like to be sure it's not just my imagination.
> I did my first manual bayes learn about 2 weeks ago using 200 spams and 200
> hams, the process appeared to go properly. I read that autolearn is enabled
> by default and kicks in after 200 emails learnt, but is there a way to tell
> whether bayes is actually learning?

Look at X-Spam-status message headers:

X-spam-status: No, score=1.2 required=6.0 tests=BAYES_00,HELO_LOCALHOST,
RCVD_IN_BSP_OTHER autolearn=ham version=3.2.5

or scan /var/log/maillog for spamd messages that report the results for
each message:

Feb 13 04:51:07 zoogz spamd[8924]: spamd: result: Y 15 - BAYES_80,
EMPTY_MESSAGE,HELO_LOCALHOST,MG_IMAGEATT,MG_IMAGESUS,MG_JPEG,MG_VIAUKFSN,
MISSING_SUBJECT,RCVD_IN_BL_SPAMCOP_NET,SHORT_HELO_AND_INLINE_IMAGE,TVD_SPACE_RATIO
 scantime=2.0,size=17758,user=getmail,uid=522,required_score=6.0,
rhost=localhost.localdomain,raddr=127.0.0.1,rport=41130,
mid=<20100213044404.5698549saliva...@zavodzpr-sa.ba>,bayes=0.873808,autolearn=spam

In both places the autolearn clause tells you what, if any, learning was
done from the message. The possible answers are ham,spam or no. The
latter applies to messages with scores that are fairly close to zero and
so were not automatically learned.


Martin


Reply via email to