Crashes on line 167 in IMAP.py with "'NoneType' object is unsubscriptable"

Bug #654231 reported by Christopher Barrington-Leigh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
offlineimap (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: offlineimap

offlineimap rarely makes it all the way through it's tasks, crashing with

Thread 'Copy message 68060 from [Gmail]/Sent Mail' terminated with exception:
                                                                             Traceback (most recent call last):
                                 File "/usr/lib/pymodules/python2.6/offlineimap/threadutil.py", line 149, in run
                                    Thread.run(self)
                                                      File "/usr/lib/python2.6/threading.py", line 484, in run
                                  self.__target(*self.__args, **self.__kwargs)
                                                                                File "/usr/lib/pymodules/python2.6/offlineimap/folder/Base.py", line 277, in copymessageto
              message = self.getmessage(uid)
                                              File "/usr/lib/pymodules/python2.6/offlineimap/folder/IMAP.py", line 167, in getmessage
                                                         return initialresult[1][0][1].replace("\r\n", "\n")
                            TypeError: 'NoneType' object is unsubscriptable

                                                                           Last 1 debug messages logged for Copy message 68060 from [Gmail]/Sent Mail prior to exception:
         imap: Returned object from fetching 68060: ('OK', [None])
                                                                  Exception in thread Folder sync mynameGMAIL[travel] (most likely raised during interpreter shutdown):

              Traceback (most recent call last):
                                                  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
                                          File "/usr/lib/pymodules/python2.6/offlineimap/threadutil.py", line 233, in run
                                           File "/usr/lib/pymodules/python2.6/offlineimap/threadutil.py", line 169, in run
                                          <type 'exceptions.TypeError'>: 'NoneType' object is not callable

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: offlineimap 6.2.0+nmu2ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-25.44-generic 2.6.32.21+drm33.7
Uname: Linux 2.6.32-25-generic x86_64
Architecture: amd64
Date: Sun Oct 3 11:52:11 2010
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_CA.utf8
 SHELL=/bin/bash
SourcePackage: offlineimap

Revision history for this message
Christopher Barrington-Leigh (cpbl) wrote :
Revision history for this message
Daniel Polehn (dpolehn-gmail) wrote :

Is this bug reproduceable? This bug has been around for a while with now updates or confirmation.

Changed in offlineimap (Ubuntu):
status: New → Incomplete
Changed in offlineimap (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.