RFC states special case for INBOX being a special case-insensitive named mailbox
Following exception is raised when syncing a Microsoft Outlook (Office365) account into a Dovecot (Maildir based) account
javax.mail.MessagingException: Couldn't create folder: Inbox in target server.
at com.marcnuri.mnimapsync.store.StoreCopier.copySourceFolder(StoreCopier.java:105)
at com.marcnuri.mnimapsync.store.StoreCopier.copySourceFolder(StoreCopier.java:115)
at com.marcnuri.mnimapsync.store.StoreCopier.copy(StoreCopier.java:75)
at com.marcnuri.mnimapsync.MNIMAPSync.copySourceToTarget(MNIMAPSync.java:104)
at com.marcnuri.mnimapsync.MNIMAPSync.sync(MNIMAPSync.java:126)
at com.marcnuri.mnimapsync.MNIMAPSync.main(MNIMAPSync.java:155)
In order to fix, check for target INBOX mailbox should be case-insensitive (i.e. target Inbox folder should not be created if there already is an INBOX present)
Description
Inbox
folder should not be created if there already is an INBOX present)See