Error: "Unknown IMAP4 command: 'file'"

Steve Purcell steve at
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/", line 206, in syncrunner
    File "/usr/local/Cellar/offline-imap/", line 269, in sync
    File "/usr/local/Cellar/offline-imap/", line 71, in holdordropconnections
    File "/usr/local/Cellar/offline-imap/", line 74, in dropconnections
    File "/usr/local/Cellar/offline-imap/", line 342, in close
    File "/usr/local/Cellar/python/2.7.2/lib/python2.7/", line 537, in logout
    File "/usr/local/Cellar/python/2.7.2/lib/python2.7/", line 1187, in shutdown
    File "/usr/local/Cellar/python/2.7.2/lib/python2.7/", 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?


More information about the OfflineIMAP-project mailing list