Skip to content

offlineimap error: Error in IMAP command CREATE: Missing arguments

offlineimap execution error

Source: MS Exchange 2013, download-emails-from-attached-mailbox-microsoft-exchange

Destination: Dovecot IMAP host

 Creating folder [imap_local]
 ERROR: While attempting to sync account 'second-domain-com'
  CREATE command error: BAD [b'Error in IMAP command CREATE: Missing arguments (0.001 + 0.000 secs).']. Data: b'MOFC11 CREATE \r\n'

Issue

MS Exchange includes a folder starting with "/" for synchronization:

#run
offlineimap -c second_domain.com.offlineimap.conf --info
...
Folderlist:
 /users/[email protected]/ 
...

Fix

Add a filter to exclude this element:

folderfilter= lambda folder: not re.search('^/users/.*$',folder)