Go to file
John Goerzen db805043f2 Attempt to fix a crashing bug in Gmail driver
refs deb#469598

Bug report received in Debian.  User is having occasional trouble with Gmail
driver crashing, indicates problem may have started after switching to Gmail.

Gmail driver merged to tree in 81b86fb74 on 2008-01-03 and recently released
in beta tarballs.

BT shows:

  File "/var/lib/python-support/python2.4/offlineimap/folder/Gmail.py", line 102, in processmessagesflags
    attributehash = imaputil.flags2hash(imaputil.imapsplit(result)[1])
  File "/var/lib/python-support/python2.4/offlineimap/imaputil.py", line 88, in imapsplit
    for i in range(len(imapstring)):
TypeError: len() of unsized object

imap debug log shows:

imap:   29:58.16 > BEAL75 UID STORE 4887 +FLAGS (\Deleted)
imap:   29:58.47 < BEAL75 OK Success
imap:   29:58.47        matched r'(?P<tag>BEAL\d+) (?P<type>[A-Z]+) (?P<data>.*)' => ('BEAL75', 'OK', 'Success')
imap: imapsplit() called with input: None
imap: imapsplit() got a non-string input; working around.

looking at code for Gmail.py processmessagesflags, comments from Ricardo
indicate it was copied from the same function in folder/IMAP.py.

However, folder/IMAP.py has checks for this, added 2002-07-12 in
5342dacc & 817a10ce.  Suspect that Gmail author believed those checks
superfluous for Gmail.

Copied checks from folder/IMAP.py to folder/Gmail.py.
2008-03-08 07:47:53 -06:00
bin Update for 5.99.7 2008-03-04 08:32:29 -06:00
debian * Remove empty /usr/sbin directory from package. 2008-03-05 17:11:47 +01:00
docs/sgml-common Step 2 of SVN to arch tree conversion 2005-04-16 20:33:35 +01:00
offlineimap Attempt to fix a crashing bug in Gmail driver 2008-03-08 07:47:53 -06:00
COPYING Update FSF address 2006-08-12 05:15:55 +01:00
COPYRIGHT Update for 5.99.7 2008-03-04 08:32:29 -06:00
FAQ.html Add the FAQ 2006-12-02 22:03:05 +01:00
Makefile Changed Makefile line to igonre .git instead of _darcs 2008-03-03 04:27:42 -06:00
offlineimap.conf Merge branch 'netrc-integration' 2008-03-03 02:27:13 -06:00
offlineimap.conf.minimal Step 2 of SVN to arch tree conversion 2005-04-16 20:33:35 +01:00
offlineimap.py Update for 5.99.7 2008-03-04 08:32:29 -06:00
offlineimap.sgml Clarify instructions for dealing with UID validity issues 2008-03-03 01:39:13 -06:00
offlineimap.spec Updating version number to 4.0.16 2006-12-02 21:59:02 +01:00
README Updated copyright and version info for 4.0.15 2006-11-30 10:51:14 +01:00
setup.py Updated copyright and version info for 4.0.15 2006-11-30 10:51:14 +01:00
UPGRADING Step 2 of SVN to arch tree conversion 2005-04-16 20:33:35 +01:00

OfflineIMAP
Copyright (C) 2002 - 2006 John Goerzen <jgoerzen@complete.org>
This software comes with ABSOLUTELY NO WARRANTY; see the file
COPYING for details.  This is free software, and you are welcome
to distribute it under the conditions laid out in COPYING.

http://software.complete.org/offlineimap/

Please see manual.txt; the information previously in README has been moved
there.