I've been trying to get sb_imapfilter working with Gmail. It works, sort of, though I'm unconvinced it's really doing a lot. Running with the latest version from CVS (including Dave Abrahams' patch), I get lots of output like this when running in verbose mode:
*[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 It would appear that it's failing to pull many messages and thus failing to classify them. In last night's run I saw lots of "classified as None" messages and every once in awhile an "already classified" message. Eventually it croaks with the following traceback: Traceback (most recent call last): File "/Users/skip/local/bin/sb_imapfilter.py", line 1328, in <module> 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'll open a bug report when I'm at work and back on the net. I know nothing about IMAP though, 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. Skip _______________________________________________ spambayes-dev mailing list spambayes-dev@python.org http://mail.python.org/mailman/listinfo/spambayes-dev