On 06/09/2010 16:41, Timo Sirainen wrote:
On Mon, 2010-09-06 at 16:36 +0100, William Blunn wrote:
mail_location = mbox:~/mail:LAYOUT=maildir++
Mail for INBOX goes to an mbox file "~/mail/inbox".
Mail for folder "folder" goes to an mbox file "~/mail/.folder".
But mail for folder "folder/subfolder" gets stuffed into "~/mail/inbox".
Did you have a namespace defined? If not, the separator is '.' and not '/', maybe that's the problem? Or anyway I guess there was some error logged why it didn't go to where you wanted. In my test it works fine.
OK, no I didn't have a namespace defined.
I have now tried it with a namespace with an explicit separator of '/' and it now all works.
namespace { type = private separator = / location = mbox:~/mail:LAYOUT=maildir++:INDEX=~/mail/.index inbox = yes hidden = no list = yes subscriptions = yes }
Mail for INBOX goes to an mbox file at "~/mail/inbox" with indexes at "~/mail/.index/.INBOX/dovecot.*" Mail for "folder" goes to an mbox file at "~/mail/.folder" with indexes at "~/mail/.index/.folder/dovecot.*" Mail for "folder/subfolder" goes to an mbox file at "~/mail/.folder.subfolder" with indexes at "~/mail/.index/.folder.subfolder/dovecot.*"
I think what confused me was that it seems that under Maildir the default separator is '/', so "folder/subfolder" gets mapped to ".folder.subfolder".
But under mbox the default separator is '.' (even if LAYOUT=maildir++ is specified!), so "folder/subfolder" doesn't get mapped to ".folder.subfolder" (perhaps it ends up as ".folder/subfolder"?) so it doesn't work.
I suppose in theory perhaps the default separator should be based on the LAYOUT rather than the mailbox format, viz.
Under LAYOUT=fs perhaps the default_separator ought to be '.', and under LAYOUT=maildir++ perhaps the default_separator ought to be '/', regardless of the mailbox format :-)
Bill