Error: "Unknown IMAP4 command: 'file'"

Steve Purcell steve at sanityinc.com
Wed Jun 15 13:45:13 BST 2011


I'm running the latest offlineimap code on OS X using the homebrew
package manager, which downloads the official offlineimap github repo.

Since homebrew updated its Python to 2.7.2, I've been seeing the
following unusual errors at the end of each sync:

  Account sync Mail:
   WARNING: Error occured attempting to sync account Mail: Traceback (most recent call last):
    File "/usr/local/Cellar/offline-imap/6.3.2.1/libexec/offlineimap/accounts.py", line 206, in syncrunner
      self.sync(siglistener)
    File "/usr/local/Cellar/offline-imap/6.3.2.1/libexec/offlineimap/accounts.py", line 269, in sync
      remoterepos.holdordropconnections()
    File "/usr/local/Cellar/offline-imap/6.3.2.1/libexec/offlineimap/repository/IMAP.py", line 71, in holdordropconnections
      self.dropconnections()
    File "/usr/local/Cellar/offline-imap/6.3.2.1/libexec/offlineimap/repository/IMAP.py", line 74, in dropconnections
      self.imapserver.close()
    File "/usr/local/Cellar/offline-imap/6.3.2.1/libexec/offlineimap/imapserver.py", line 342, in close
      imapobj.logout()
    File "/usr/local/Cellar/python/2.7.2/lib/python2.7/imaplib.py", line 537, in logout
      self.shutdown()
    File "/usr/local/Cellar/python/2.7.2/lib/python2.7/imaplib.py", line 1187, in shutdown
      self.file.close()
    File "/usr/local/Cellar/python/2.7.2/lib/python2.7/imaplib.py", line 214, in __getattr__
      raise AttributeError("Unknown IMAP4 command: '%s'" % attr)
  AttributeError: Unknown IMAP4 command: 'file'

Additionally, at the end of the subsequent idle period, offlineimap
hangs indefinitely with the following output:

  Next refresh in 20 seconds
  Next refresh in 10 seconds
  ***** Finished processing account Mail
  Copying folder structure from IMAP to MappedIMAP

Are these known issues?

-Steve





More information about the OfflineIMAP-project mailing list