[Spambayes] Problem with SpamBayes 1.0a9 & procmail

Mike Causer mikec at mikecauser.org
Tue Feb 17 11:49:25 EST 2004

On Tue, 17 Feb 2004 00:59:46 +0000  Mike Causer wrote:

> So now I have to dig through the .bash.histories & figure out how I
> corrupted the original within 10 minutes of creating it.  Actually I
> think I do know, but it would be nice to come up with a sequence that
> anyone can repeat.

Hrumph.  Failed to repeat the corruption.  What I've been doing is to
use the command line filter and have sb_server running at the same time,
which is what I thought caused the first problem.    Not today though :-(

The worst I've done so far is to add   [Hammie]\ntrain_on_filter=True
to .spambayesrc which upsets sb_filter if it's run without the -t option.

  [mikec at lugh mikec]$ /usr/bin/sb_filter.py ./cleanmail
   Traceback (most recent call last):
  File "/usr/bin/sb_filter.py", line 239, in ?
  File "/usr/bin/sb_filter.py", line 231, in main
  File "/usr/bin/sb_filter.py", line 163, in filter
    return h.filter(msg)
  File "/usr/lib/python2.3/site-packages/spambayes/hammie.py", line 120, in filter
    self.train(msg, is_spam, True)
  File "/usr/lib/python2.3/site-packages/spambayes/hammie.py", line 160, in train
    self.bayes.learn(tokenize(msg), is_spam)
  File "/usr/lib/python2.3/site-packages/spambayes/classifier.py", line 273, in learn
    self._add_msg(wordstream, is_spam)
  File "/usr/lib/python2.3/site-packages/spambayes/classifier.py", line 386, in _add_msg
  File "/usr/lib/python2.3/site-packages/spambayes/storage.py", line 251, in _post_training
  File "/usr/lib/python2.3/site-packages/spambayes/storage.py", line 244, in _write_state_key
    self.db[self.statekey] = (classifier.PICKLE_VERSION,
  File "/usr/lib/python2.3/shelve.py", line 130, in __setitem__
    self.dict[key] = f.getvalue()
  File "/usr/lib/python2.3/bsddb/__init__.py", line 90, in __setitem__
    self.db[key] = value
   bsddb._db.DBAccessError: (13, 'Permission denied -- put: attempt to modify a read-only tree')

Time to apply Cardinal Biggles' most severe instrument of torture, methinks.

Mike Causer                          Email - mailto:mikec at mikecauser.org
GPG KeyID 1C2DDA07                       WWW - http://www.mikecauser.org
Flood the fen again! - Wicken Fen enlargement - http://www.wicken.org.uk

More information about the Spambayes mailing list