[spambayes-bugs] [ spambayes-Bugs-897895 ] training via SMTP is not possible

SourceForge.net noreply at sourceforge.net
Mon Feb 16 04:20:20 EST 2004


Bugs item #897895, was opened at 2004-02-16 10:20
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=897895&group_id=61702

Category: pop3proxy
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Massimo Ferrario (maxferrario)
Assigned to: Nobody/Anonymous (nobody)
Summary: training via SMTP is not possible

Initial Comment:
The training via SMTP is not working anymore in 1.0a9 
(it was in my previous 1.0a7 installation). 

If I send an email to the SMTP port I get almost always 
a "connection closed" error on my MUA (Eudora). Sorry I 
cannot tell exactly when this error occurs, I can only 
say that I got this problem many times, but a few mails 
were accepted!

After I try to train spambayes via SMTP, and get an 
error, my emails contain an X-Spambayes-Exception 
header
====================
X-Spambayes-Exception: Traceback (most recent call 
last):
 .  File "/usr/bin/sb_server.py", line 451, in onRetr.    
evidence=True)
 .  File "/usr/lib/python2.2/site-
packages/spambayes/classifier.py", line
 190, in chi2_spamprob.    clues = self._getclues
(wordstream)
 .  File "/usr/lib/python2.2/site-
packages/spambayes/classifier.py", line
 493, in _getclues.    tup = self._worddistanceget(word)
 .  File "/usr/lib/python2.2/site-
packages/spambayes/classifier.py", line
 504, in _worddistanceget.    record = self._wordinfoget
(word)
 .  File "/usr/lib/python2.2/site-
packages/spambayes/storage.py", line 261,
 in _wordinfoget.    r = self.db.get(word)
 .  File "/usr/lib/python2.2/shelve.py", line 65, in get
 .    if self.dict.has_key(key):
 .error: (-30981, 'Unknown error 4294936315')
====================

and if I stop the POP3 proxy via command line i get
====================
# /etc/rc.d/init.d/spambayes_pop3 stop
Traceback (most recent call last):
  File "/usr/bin/sb_server.py", line 451, in onRetr
    evidence=True)
  File "/usr/lib/python2.2/site-
packages/spambayes/classifier.py", line 190, in 
chi2_spamprob
    clues = self._getclues(wordstream)
  File "/usr/lib/python2.2/site-
packages/spambayes/classifier.py", line 493, in _getclues
    tup = self._worddistanceget(word)
  File "/usr/lib/python2.2/site-
packages/spambayes/classifier.py", line 504, in 
_worddistanceget
    record = self._wordinfoget(word)
  File "/usr/lib/python2.2/site-
packages/spambayes/storage.py", line 261, in 
_wordinfoget
    r = self.db.get(word)
  File "/usr/lib/python2.2/shelve.py", line 65, in get
    if self.dict.has_key(key):
error: (-30981, 'Unknown error 4294936315')
====================

Please note that I am using 1.09a + message.py and 
Stats.py from CVS.

My system is a RedHat 9.0 box, python 2.2

PS
I can train spambayes on the same message that gave 
the previous error using the web interface at "Train on a 
message, mbox file or dbx file"


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=897895&group_id=61702



More information about the Spambayes-bugs mailing list