[spambayes-bugs] [ spambayes-Bugs-788845 ] imapfilter training fails

SourceForge.net noreply at sourceforge.net
Tue Aug 19 02:19:09 EDT 2003


Bugs item #788845, was opened at 2003-08-15 05:37
Message generated for change (Comment added) made by anadelonbrin
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=788845&group_id=61702

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Tys von Gaza (tvongaza)
Assigned to: Nobody/Anonymous (nobody)
Summary: imapfilter training fails

Initial Comment:
Using latest CVS, Python 2.2.2, connecting to a Courier 
IMAP server.  Web interface of imapfilter can connect 
and see the imap folders on the server.  When I try 
training (with messages in the TrainSpam folder) I get 
the following traceback, I am willing to help anyone 
debug this:

[gaza at games gaza]$ python2.2 
spambayes/imapfilter.py -v -t
SpamBayes IMAP Filter Alpha1, version 0.01 (May 2003),
using SpamBayes IMAP Filter Web Interface Alpha1, 
version 0.01
and engine SpamBayes Beta2, version 0.2 (July 2003).

Loading database hammie.db... Loading state from 
hammie.db database
hammie.db is an existing database, with 0 spam and 0 
ham
Done.
Training
   Training ham folder INBOX.SB.TrainHam
       0 trained.
   Training spam folder INBOX.SB.TrainSpam
*.Traceback (most recent call last):
  File "spambayes/imapfilter.py", line 782, in ?
    run()
  File "spambayes/imapfilter.py", line 768, in run
    imap_filter.Train()
  File "spambayes/imapfilter.py", line 607, in Train
    num_spam_trained = folder.Train(self.classifier, True)
  File "spambayes/imapfilter.py", line 543, in Train
    msg.Save()
  File "spambayes/imapfilter.py", line 365, in Save
    response = imap.uid("FETCH", self.uid, "(FLAGS 
INTERNALDATE)")
  File "//usr/lib/python2.2/imaplib.py", line 622, in uid
    typ, dat = apply(self._simple_command, (name, 
command) + args)
  File "//usr/lib/python2.2/imaplib.py", line 925, in 
_simple_command
    return self._command_complete(name, apply
(self._command, (name,) + args))
  File "//usr/lib/python2.2/imaplib.py", line 699, in 
_command
    data = '%s %s' % (data, self._checkquote(arg))
  File "//usr/lib/python2.2/imaplib.py", line 908, in 
_checkquote
    if (arg[0],arg[-1]) in (('(',')'),('"','"')):
IndexError: string index out of range

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

>Comment By: Tony Meyer (anadelonbrin)
Date: 2003-08-19 20:19

Message:
Logged In: YES 
user_id=552329

I have very occasionally seen this too, but whenever I've 
tried to reproduce it (to fix it) I haven't been able to.  Do you 
get this consistently?  If you do, could you run imapfilter with 
the "-i4" switch and tell me/the list what you get?

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

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



More information about the Spambayes-bugs mailing list