nan in bogofilter stats

David Relson relson at osagesoftware.com
Wed Nov 19 01:02:40 CET 2008


On Wed, 19 Nov 2008 09:38:25 +1030
Stephen Davies wrote:

> Recently I am seeing large numbers of false Ham results from my
> well-trained bogofilter.
> 
> The following is the output of a bogofilter scan of an obvious spam
> mail.
> 
> The Ham result seems to result from the "nan" values.
> 
> Where do these come from and how do I fix it?
> 
> Cheers and thanks,
> Stephen Davies
...[snip]...
> [scldad at mustang bogofilter]$ bogoutil -w wordlist.db Viagra
>                                  spam   good
> Viagra                          12385      0

Hello Stephen,

It sounds like your wordlist is b0rked. "nan" shows up when .MSG_COUNT
has 0 for either spam or ham counts.  run 

	"bogoutil -w wordlist.db .MSG_COUNT"

to test this.  If a zero shows up, then it's time to replace your
wordlist with a backup copy.

HTH,

David



More information about the Bogofilter mailing list