[Spambayes] I seem to have stumbled upon a (persistent) spamcount > nspam bug

Edgar Matzinger edgar at edgar-matzinger.nl
Mon Sep 11 15:46:52 CEST 2006


   after getting these messages:
fetchmail: reading message <mailserver>:19 of 19 (4326 octets)  
....Traceback (most recent call last):
   File "/usr/bin/sb_filter.py", line 257, in ?
   File "/usr/bin/sb_filter.py", line 248, in main
   File "/usr/bin/sb_filter.py", line 180, in filter
     return self.h.filter(msg)
   File "/usr/lib/.../spambayes/hammie.py", line 109, in filter
     prob, clues = self._scoremsg(msg, True)
   File "/usr/lib/.../spambayes/hammie.py", line 38, in _scoremsg
     return self.bayes.spamprob(tokenize(msg), evidence)
   File "/usr/lib/.../spambayes/classifier.py", line 190, in  
     clues = self._getclues(wordstream)
   File "/usr/lib/.../spambayes/classifier.py", line 493, in _getclues
     tup = self._worddistanceget(word)
   File "/usr/lib/.../spambayes/classifier.py", line 508, in  
     prob = self.probability(record)
   File "/usr/lib/.../spambayes/classifier.py", line 311, in probability
     assert spamcount <= nspam
NB ... = python2.4/site-packages

And after browsing (and googling) the internet, the above error seems
to point to a corrupt DB file. Even after recreating this DB file
from scratch *and* after updating to spambayes-1.1a1 and recreating
the same DB file, this problem keeps existing. The platform spambayes
is running on is (Intel pentium) Fedora Core 5. I've used the following
comnmand to recreate the DB file:
$ # Empty hammie DB
$ echo -n > /usr/local/share/spambayes/hammie.db
$ # Retrain
$ sb_mboxtrain.py -f -d /usr/local/share/spambayes/hammie.db -g \
  $HOME/EMail/Inbox/inbox -g $HOME/EMail/Inbox/NeoNixie -g \
  $HOME/EMail/Inbox/SpareTimeGizmo -g $HOME/EMail/Inbox/Evolution -s \
NB I've specified the -f option to force a retrain of already trained

Can anyone of you shed some light on this issue?

MTIA, cu l8r, Edgar.
        (o o)                                           Just curious...

More information about the SpamBayes mailing list