Comment 0 for bug 792043

Revision history for this message
Scott Moser (smoser) wrote : offlineimap crashes with python 2.7

Binary package hint: offlineimap

sometime in this past week or so, on oneiric offlineimap began to crash for me.

I modified /usr/share/pyshared/offlineimap/accounts.py.dist to raise the error rather than just logging it, and below is the trace.

Thread 'Account sync Canonical' terminated with exception:
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/offlineimap/threadutil.py", line 149, in run
    Thread.run(self)
  File "/usr/lib/python2.7/threading.py", line 505, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/pymodules/python2.7/offlineimap/accounts.py", line 186, in syncrunner
    self.sync(siglistener)
  File "/usr/lib/pymodules/python2.7/offlineimap/accounts.py", line 261, in sync
    remoterepos.holdordropconnections()
  File "/usr/lib/pymodules/python2.7/offlineimap/repository/IMAP.py", line 71, in holdordropconnections
    self.dropconnections()
  File "/usr/lib/pymodules/python2.7/offlineimap/repository/IMAP.py", line 74, in dropconnections
    self.imapserver.close()
  File "/usr/lib/pymodules/python2.7/offlineimap/imapserver.py", line 348, in close
    imapobj.logout()
  File "/usr/lib/python2.7/imaplib.py", line 537, in logout
    self.shutdown()
  File "/usr/lib/python2.7/imaplib.py", line 1187, in shutdown
    self.file.close()
  File "/usr/lib/python2.7/imaplib.py", line 214, in __getattr__
    raise AttributeError("Unknown IMAP4 command: '%s'" % attr)
AttributeError: Unknown IMAP4 command: 'file'

I'm hesitant to attach other output because it has email addresses in it and such, but I see other warnings in offlineimap like:
WARNING: ERROR attempting to copy message 1655 for account Canonical:Unknown IMAP4 command: 'file'

WARNING: ERROR attempting to copy message 1656 for account Canonical:command: UID => unexpected response: 'Return-Path: <email address hidden>'

WARNING: ERROR attempting to copy message 1657 for account Canonical:command: UID => unexpected response: 'X-Original-To: <email address hidden>'

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: offlineimap 6.2.0.2ubuntu1
ProcVersionSignature: Ubuntu 2.6.39-3.10-generic 2.6.39
Uname: Linux 2.6.39-3-generic x86_64
Architecture: amd64
Date: Thu Jun 2 15:54:35 2011
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta amd64 (20100318)
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, user)
 LANG=en_US.utf8
 LC_MESSAGES=en_US.utf8
 SHELL=/bin/bash
SourcePackage: offlineimap
UpgradeStatus: Upgraded to oneiric on 2010-11-15 (198 days ago)