Hi,
IMAPdir lets me layout mailboxes in the filesystem like so:
$HOME/ Maildir/ <---- users mail goes here Mail/ <---- IMAP root INBOX -> ../Maildir/ <---- (symlink) folder/ <---- some other mailbox in Maildir format folder.subfolder/ <---- '.' is the hierarchy separator folder.subfolder-2/
other-folder/So IMAP clients subscribe to 'INBOX' and 'folder' and 'folder/subfolder' respectively.
The current layout I get with default is: $HOME/ Maildir/ INBOX/ INBOX.subfolder-of-inbox-if-you-have-any-I-dont/ folder/ folder.subfolder/ etc.
Dovecot can even handle (afaik) having inbox in a different place by simply configuring
default_mail_env = maildir:/home/%u/Maildir:INBOX=/home/%u/Mail/
I think. Not sure if it can handle INBOX being a maildir. Check the wiki/docs.
johannes