Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Folder creation fails sporadically with "Mailbox already exists." #212

Closed
m3nu opened this issue Jun 24, 2015 · 4 comments
Closed

Folder creation fails sporadically with "Mailbox already exists." #212

m3nu opened this issue Jun 24, 2015 · 4 comments

Comments

@m3nu
Copy link

m3nu commented Jun 24, 2015

On first sync, I need to run offlineimap in a loop due to these errors in folder creation. Some kind of race condition?

Folder 'INBOX/20 Karajangasse/K&AOQ-ufer/T11 - Gabler'[***_exchange] could not be created. Server responded: ('NO', ['Mailbox already exists.'])

@nicolas33 nicolas33 added the bug label Jun 28, 2015
@nicolas33
Copy link
Member

Do you have nametrans rules? Also check http://offlineimap.org/doc/FAQ.html#i-get-a-mailbox-already-exists-error.

@maugsburger
Copy link

maugsburger commented May 19, 2016

I get a similar bug, syncing to an Exchange 2013 server:
Creating folder INBOX/01 Todo/Trash[info-exc] Creating folder INBOX/01 Todo[info-exc] ERROR: Creating folder INBOX/01 Todo on repository info-exc

Probably, it's because Exchange automatically creates the INBOX/01 Todo when INBOX/01 Todo/Trash is created - but offlineimap doesn't mark it as created, because it's a parent-folder-less subfolders (as e.g. dovecot supports it).

@nicolas33
Copy link
Member

Does this error happen again on next sync?

BTW, I think offlineimap should create folders in order of the hierarchy to avoid such issue.

@maugsburger
Copy link

No, it doesn't happen again on the next sync. I needed to run offlineimap several times until all folders were created successfully, then everything works smoothly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants