[Dovecot] invalid mailbox name

Timo Sirainen tss at iki.fi
Tue Mar 13 11:00:19 EET 2012


On 13.3.2012, at 10.46, Vincent Schut wrote:

> Hi,
> 
> while migrating all mail from our old to our new server (using offlineimap, imap -> imap), I get the following error for one of my user's mailboxes:
> 
> ERROR: Folder 'Organisations.RS Env & IJRS'[local_hoekman] could not be created. Server responded: ('NO', ['Invalid mailbox name: Organisations.RS Env & IJRS'])
> 
> I suppose this is because of the ampersand in the mailbox name? Because other folder with spaces in it go just fine...
> 
> Is this a fixed thing? Why was my user able to create the folder once? And why is dovecot 1.2.15 refusing to create the folder now?

Old Dovecot versions didn't enforce mailbox names to be valid, new ones do. I guess user had a broken IMAP client that created a mailbox with invalid name and now Dovecot refuses to do it again.

Mailbox names are in "modified UTF-7" format. "&" character needs to be translated as "&-".




More information about the dovecot mailing list