We're running Dovecot 2.1.17 on Debian:
# 2.1.17 (9efbc0731929): /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-042stab078.27.debug i686 Debian 7.1 simfs
and we're having this namespace configuration:
mail_location = mdbox:/var/mail/%Ld/%Ln/mdbox
namespace inbox { disabled = no hidden = no ignore_on_failure = no inbox = yes list = yes location = prefix = separator = . subscriptions = yes type = private }
As you can see, our namespace seperator is "." and not "/":
a LIST "" "*"
- LIST (\HasChildren) "." INBOX.test
- LIST (\HasNoChildren) "." INBOX.test.huhu
- LIST (\HasNoChildren \Trash) "." Trash
- LIST (\HasChildren) "." INBOX a OK List completed.
The problem is, that doveadm isn't able to import his own mdbox-directory:
- delete the whole mdbox folder
rm -rf mdbox
- create the new mdbox folder and create some subfolders in it
doveadm mailbox create -u max.muster INBOX.test
# doveadm mailbox create -u max.muster INBOX.test.huhu
put a mail into a subfolder
try to re-import the whole mdbox: it doesn't work
doveadm import -u max.muster mdbox:mdbox BACKUP all
doveadm(max.muster): Error: Couldn't create mailbox BACKUP.INBOX/test/huhu: Character not allowed in mailbox name: '/'
Looks like there's something wrong in the namespace or like doveadm is working with a hardcoded internal namespace...
Peer
-- Heinlein Support GmbH Schwedter Str. 8/9b, 10119 Berlin
http://www.heinlein-support.de
Tel: 030 / 405051-42 Fax: 030 / 405051-19
Zwangsangaben lt. §35a GmbHG: HRB 93818 B / Amtsgericht Berlin-Charlottenburg, Geschäftsführer: Peer Heinlein -- Sitz: Berlin