[ spambayes-Bugs-1892729 ] sb_imapfilter traceback Bugs item #1892729, was opened at 2008-02-13 07:47
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=1892729&group_id=61702

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: imapfilter
Group: Source code - CVS
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Skip Montanaro (montanaro)
Assigned to: Tony Meyer (anadelonbrin)
Summary: sb_imapfilter traceback

Initial Comment:
I've been experimenting with the imap filter and Gmail.
It worked for awhile, but I've been getting tracebacks
recently.  When run in verbose mode it seems to rarely
be able to find messages:

    *[imapfilter] can't find saved message after 100 iterations: 25984
    .[imapfilter] classified as None: 25985
    Persisting messageinfo.fs state in database
    Persisting messageinfo.fs state in database
    *[imapfilter] can't find saved message after 100 iterations: 25985
    .[imapfilter] classified as None: 25986
    Persisting messageinfo.fs state in database
    Persisting messageinfo.fs state in database

and eventually croaks with a traceback:

    Traceback (most recent call last):
      File "/Users/skip/local/bin/sb_imapfilter.py", line 1328, in 
        run()
      File "/Users/skip/local/bin/sb_imapfilter.py", line 1310, in run
        imap_filter.Filter()
      File "/Users/skip/local/bin/sb_imapfilter.py", line 1116, in Filter
        self.unsure_folder, self.ham_folder)
      File "/Users/skip/local/bin/sb_imapfilter.py", line 962, in Filter
        for msg in self:
      File "/Users/skip/local/bin/sb_imapfilter.py", line 818, in __iter__
        yield self[key]
      File "/Users/skip/local/bin/sb_imapfilter.py", line 847, in __getitem__
        response = self.imap_server.uid("FETCH", key, "RFC822.HEADER")
      File "/Users/skip/local/lib/python2.5/imaplib.py", line 752, in uid
        typ, dat = self._simple_command(name, command, *args)
      File "/Users/skip/local/lib/python2.5/imaplib.py", line 1055, in _simple_command
        return self._command_complete(name, self._command(name, *args))
      File "/Users/skip/local/lib/python2.5/imaplib.py", line 890, in _command_complete
        self._check_bye()
      File "/Users/skip/local/lib/python2.5/imaplib.py", line 807, in _check_bye
        raise self.abort(bye[-1])
    imaplib.abort: System Error

I know nothing about IMAP, so I can't tell if this
is caused by a bug in sb_imapfilter.py or if it
reveals some sort of shortcoming with Gmail's IMAP
implementation.


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

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


