ERROR: Creating folder: CREATE folder already exists

David Touzeau david at touzeau.eu
Mon Aug 13 09:41:27 BST 2012


Dear

I'm fighting with this behavior.
It seems that task is stopped when trying to create a folder already exists.
In this case, mails are not synchronized.
Is there a way to force offlineimap to pass trough and continue processing ?

Best regards

[imap]:   03:17.71 imap.server.tld reader poll => [(5, 1)]
DEBUG:OfflineImap:[imap]:   03:17.71 imap.server.tld reader poll => [(5, 1)]
[imap]:   03:17.71 imap.server.tld reader rcvd 53
DEBUG:OfflineImap:[imap]:   03:17.71 imap.server.tld reader rcvd 53
[imap]:   03:17.71 imap.server.tld reader < * BYE Server logging out\r\n
DEBUG:OfflineImap:[imap]:   03:17.71 imap.server.tld reader < * BYE 
Server logging out\r\n
[imap]:   03:17.71 imap.server.tld reader < GECB6 OK LOGOUT completed\r\n
DEBUG:OfflineImap:[imap]:   03:17.71 imap.server.tld reader < GECB6 OK 
LOGOUT completed\r\n
[imap]:   03:17.71 imap.server.tld reader poll => []
DEBUG:OfflineImap:[imap]:   03:17.71 imap.server.tld reader poll => []
[imap]:   03:17.72 imap.server.tld reader poll => []
DEBUG:OfflineImap:[imap]:   03:17.72 imap.server.tld reader poll => []
[imap]:   03:17.72 imap.server.tld handler untagged_responses[BYE] 0 += 
["Server logging out"]
DEBUG:OfflineImap:[imap]:   03:17.72 imap.server.tld handler 
untagged_responses[BYE] 0 += ["Server logging out"]
[imap]:   03:17.72 imap.server.tld handler BYE response: Server logging out
DEBUG:OfflineImap:[imap]:   03:17.72 imap.server.tld handler BYE 
response: Server logging out
[imap]:   03:17.72 imap.server.tld handler terminating: 'connection 
terminated'
DEBUG:OfflineImap:[imap]:   03:17.72 imap.server.tld handler 
terminating: 'connection terminated'
[imap]:   03:17.72 imap.server.tld handler LOGOUT:GECB6.ready.set
DEBUG:OfflineImap:[imap]:   03:17.72 imap.server.tld handler 
LOGOUT:GECB6.ready.set
[imap]:   03:17.72 imap.server.tld handler state_change_free.set
DEBUG:OfflineImap:[imap]:   03:17.72 imap.server.tld handler 
state_change_free.set
[imap]:   03:17.72 imap.server.tld handler finished
DEBUG:OfflineImap:[imap]:   03:17.72 imap.server.tld handler finished
[imap]:   03:17.72 imap.server.tld writer finished
DEBUG:OfflineImap:[imap]:   03:17.72 imap.server.tld writer finished
[imap]:   03:17.72 Account sync user at domain.tld ["<class 
'offlineimap.imaplib2.abort'>: command: LOGOUT => connection terminated"]
DEBUG:OfflineImap:[imap]:   03:17.72 Account sync user at domain.tld 
["<class 'offlineimap.imaplib2.abort'>: command: LOGOUT => connection 
terminated"]
[imap]:   03:17.72 Account sync user at domain.tld _close_threads
DEBUG:OfflineImap:[imap]:   03:17.72 Account sync user at domain.tld 
_close_threads
[imap]:   03:17.72 Account sync user at domain.tld call shutdown
DEBUG:OfflineImap:[imap]:   03:17.72 Account sync user at domain.tld call 
shutdown
[imap]:   03:17.72 imap.server.tld reader poll => [(5, 32)]
DEBUG:OfflineImap:[imap]:   03:17.72 imap.server.tld reader poll => [(5, 
32)]
[imap]:   03:17.72 imap.server.tld reader finished
DEBUG:OfflineImap:[imap]:   03:17.72 imap.server.tld reader finished
[imap]:   03:17.72 Account sync user at domain.tld state_change_pending.release
DEBUG:OfflineImap:[imap]:   03:17.72 Account sync user at domain.tld 
state_change_pending.release
[imap]:   03:17.72 Account sync user at domain.tld connection closed
DEBUG:OfflineImap:[imap]:   03:17.72 Account sync user at domain.tld 
connection closed
[imap]:   03:17.72 Account sync user at domain.tld 
_get_untagged_response(BYE) => ['Server logging out']
DEBUG:OfflineImap:[imap]:   03:17.72 Account sync user at domain.tld 
_get_untagged_response(BYE) => ['Server logging out']
ERROR: Folder 'INBOX/Artica/IPACS'[TargetServer] could not be created. 
Server responded: ('NO', ['CREATE folder already exists'])
INFO:OfflineImap:ERROR: Folder 'INBOX/Artica/IPACS'[TargetServer] could 
not be created. Server responded: ('NO', ['CREATE folder already exists'])
['  File 
"/usr/local/lib/python2.6/dist-packages/offlineimap/accounts.py", line 
234, in syncrunner\n    self.sync()\n', '  File 
"/usr/local/lib/python2.6/dist-packages/offlineimap/accounts.py", line 
294, in sync\n    remoterepos.sync_folder_structure(localrepos, 
statusrepos)\n', '  File 
"/usr/local/lib/python2.6/dist-packages/offlineimap/repository/Base.py", 
line 184, in sync_folder_structure\n dst_repo.makefolder(src_name_t)\n', 
'  File 
"/usr/local/lib/python2.6/dist-packages/offlineimap/repository/IMAP.py", 
line 357, in makefolder\n    OfflineImapError.ERROR.FOLDER)\n']
INFO:OfflineImap:['  File 
"/usr/local/lib/python2.6/dist-packages/offlineimap/accounts.py", line 
234, in syncrunner\n    self.sync()\n', '  File 
"/usr/local/lib/python2.6/dist-packages/offlineimap/accounts.py", line 
294, in sync\n    remoterepos.sync_folder_structure(localrepos, 
statusrepos)\n', '  File 
"/usr/local/lib/python2.6/dist-packages/offlineimap/repository/Base.py", 
line 184, in sync_folder_structure\n dst_repo.makefolder(src_name_t)\n', 
'  File 
"/usr/local/lib/python2.6/dist-packages/offlineimap/repository/IMAP.py", 
line 357, in makefolder\n    OfflineImapError.ERROR.FOLDER)\n']
*** Finished account 'user at domain.tld' in 0:02
INFO:OfflineImap:*** Finished account 'user at domain.tld' in 0:02
[thread]: Unregister thread 'Account sync user at domain.tld'
DEBUG:OfflineImap:[thread]: Unregister thread 'Account sync user at domain.tld'
ERROR: Exceptions occurred during the run!
WARNING:OfflineImap:ERROR: Exceptions occurred during the run!
ERROR: Creating folder INBOX/Artica/IPACS on repository TargetServer
   Folder 'INBOX/Artica/IPACS'[TargetServer] could not be created. 
Server responded: ('NO', ['CREATE folder already exists'])
WARNING:OfflineImap:ERROR: Creating folder INBOX/Artica/IPACS on 
repository TargetServer
   Folder 'INBOX/Artica/IPACS'[TargetServer] could not be created. 
Server responded: ('NO', ['CREATE folder already exists'])

Traceback:
   File 
"/usr/local/lib/python2.6/dist-packages/offlineimap/repository/Base.py", 
line 184, in sync_folder_structure
     dst_repo.makefolder(src_name_t)
   File 
"/usr/local/lib/python2.6/dist-packages/offlineimap/repository/IMAP.py", 
line 357, in makefolder
     OfflineImapError.ERROR.FOLDER)

WARNING:OfflineImap:
Traceback:
   File 
"/usr/local/lib/python2.6/dist-packages/offlineimap/repository/Base.py", 
line 184, in sync_folder_structure
     dst_repo.makefolder(src_name_t)
   File 
"/usr/local/lib/python2.6/dist-packages/offlineimap/repository/IMAP.py", 
line 357, in makefolder
     OfflineImapError.ERROR.FOLDER)

ERROR: Folder 'INBOX/Artica/IPACS'[TargetServer] could not be created. 
Server responded: ('NO', ['CREATE folder already exists'])
WARNING:OfflineImap:ERROR: Folder 'INBOX/Artica/IPACS'[TargetServer] 
could not be created. Server responded: ('NO', ['CREATE folder already 
exists'])

Traceback:
   File 
"/usr/local/lib/python2.6/dist-packages/offlineimap/accounts.py", line 
234, in syncrunner
     self.sync()
   File 
"/usr/local/lib/python2.6/dist-packages/offlineimap/accounts.py", line 
294, in sync
     remoterepos.sync_folder_structure(localrepos, statusrepos)
   File 
"/usr/local/lib/python2.6/dist-packages/offlineimap/repository/Base.py", 
line 184, in sync_folder_structure
     dst_repo.makefolder(src_name_t)
   File 
"/usr/local/lib/python2.6/dist-packages/offlineimap/repository/IMAP.py", 
line 357, in makefolder
     OfflineImapError.ERROR.FOLDER)

WARNING:OfflineImap:
Traceback:
   File 
"/usr/local/lib/python2.6/dist-packages/offlineimap/accounts.py", line 
234, in syncrunner
     self.sync()
   File 
"/usr/local/lib/python2.6/dist-packages/offlineimap/accounts.py", line 
294, in sync
     remoterepos.sync_folder_structure(localrepos, statusrepos)
   File 
"/usr/local/lib/python2.6/dist-packages/offlineimap/repository/Base.py", 
line 184, in sync_folder_structure
     dst_repo.makefolder(src_name_t)
   File 
"/usr/local/lib/python2.6/dist-packages/offlineimap/repository/IMAP.py", 
line 357, in makefolder
     OfflineImapError.ERROR.FOLDER)





More information about the OfflineIMAP-project mailing list