I am setting up Offlineimap and Mutt on OSX Snow Leopard. I am almost done and have 5 accounts working/syncing. However, my main Gmail crashes every time I try to sync it! I don't know what is going on as the other accounts are also on Gmail and don't have problems. The main Gmail account has way more messages in it (>5gb) -- is that perhaps the issue? I have googled this error message endlessly and found nothing. The error message indicates "OSError: [Errno 17] File exists: '[Gmail].Sent Mail'" -- however I have deleted this file/folder repeatedly and made sure the .offlineimaprc is clean. Also, the other accounts were set up the same way and don't experience this problem. Really have no idea how to proceed from here but probably there is some painfully obvious answer.
Thank you very much!
Rabbit on Rails
Thread 'Account sync Gmail' terminated with exception:
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/offlineimap/threadutil.py", line 149, in run
Thread.run(self)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py", line 484, in run
self.__target(*self.__args, **self.__kwargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/offlineimap/accounts.py", line 183, in syncrunner
self.sync(siglistener)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/offlineimap/accounts.py", line 220, in sync
remoterepos.syncfoldersto(localrepos, [statusrepos])
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/offlineimap/repository/Base.py", line 155, in syncfoldersto
dest.makefolder(key)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/offlineimap/repository/Maildir.py", line 101, in makefolder
os.makedirs(foldername, 0700)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 17] File exists: '[Gmail].Sent Mail'
Last 50 debug messages logged for Account sync Gmail prior to exception:
imap: imapsplit() called with input: \HasChildren \HasNoChildren
imap: imapsplit() returning: ['\\HasChildren', '\\HasNoChildren']
imap: dequote() called with input: "[Gmail]/Drafts"
imap: dequote() returning: [Gmail]/Drafts
imap: dequote() called with input: [Gmail]/Drafts
imap: imapsplit() called with input: (\HasNoChildren) "/" "[Gmail]/Sent Mail"
imap: imapsplit() returning: ['(\\HasNoChildren)', '"/"', '"[Gmail]/Sent Mail"']
imap: imapsplit() called with input: \HasNoChildren
imap: imapsplit() returning: ['\\HasNoChildren']
imap: dequote() called with input: "[Gmail]/Sent Mail"
imap: dequote() returning: [Gmail]/Sent Mail
imap: dequote() called with input: [Gmail]/Sent Mail
imap: imapsplit() called with input: (\HasChildren \HasNoChildren) "/" "[Gmail]/Starred"
imap: imapsplit() returning: ['(\\HasChildren \\HasNoChildren)', '"/"', '"[Gmail]/Starred"']
imap: imapsplit() called with input: \HasChildren \HasNoChildren
imap: imapsplit() returning: ['\\HasChildren', '\\HasNoChildren']
imap: dequote() called with input: "[Gmail]/Starred"
imap: dequote() returning: [Gmail]/Starred
imap: dequote() called with input: [Gmail]/Starred
imap: imapsplit() called with input: (\HasChildren \HasNoChildren) "/" "[Gmail]/Trash"
imap: imapsplit() returning: ['(\\HasChildren \\HasNoChildren)', '"/"', '"[Gmail]/Trash"']
imap: imapsplit() called with input: \HasChildren \HasNoChildren
imap: imapsplit() returning: ['\\HasChildren', '\\HasNoChildren']
imap: dequote() called with input: "[Gmail]/Trash"
imap: dequote() returning: [Gmail]/Trash
imap: dequote() called with input: [Gmail]/Trash
imap: imapsplit() called with input: (\HasNoChildren) "/" "xChange"
imap: imapsplit() returning: ['(\\HasNoChildr