Thank you very much!

Here’s what I see:


# separator =   [this line commented out in 10-mail.conf]

1 SELECT INBOX
imap(pid 35573 user target-user): Debug: Mailbox INBOX: Mailbox opened because: SELECT
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft $NotJunk NotJunk $Forwarded Redirected $MailFlagBit0 Forwarded $MailFlagBit2 $MailFlagBit1)
* OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft $NotJunk NotJunk $Forwarded Redirected $MailFlagBit0 Forwarded $MailFlagBit2 $MailFlagBit1 \*)] Flags permitted.
* 21627 EXISTS
* 0 RECENT
* OK [UNSEEN 14430] First unseen.
* OK [UIDVALIDITY 1558435823] UIDs valid
* OK [UIDNEXT 22415] Predicted next UID
* OK [HIGHESTMODSEQ 39411] Highest
1 OK [READ-WRITE] Select completed (0.001 + 0.000 secs).


separator = /

imap(pid 35890 user target-user): Debug: Mailbox INBOX: Mailbox opened because: SELECT
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft $NotJunk NotJunk $Forwarded Redirected $MailFlagBit0 Forwarded $MailFlagBit2 $MailFlagBit1)
* OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft $NotJunk NotJunk $Forwarded Redirected $MailFlagBit0 Forwarded $MailFlagBit2 $MailFlagBit1 \*)] Flags permitted.
* 21627 EXISTS
* 0 RECENT
* OK [UNSEEN 14430] First unseen.
* OK [UIDVALIDITY 1558435823] UIDs valid
* OK [UIDNEXT 22415] Predicted next UID
* OK [HIGHESTMODSEQ 39411] Highest
1 OK [READ-WRITE] Select completed (0.001 + 0.000 secs).


Steve


On May 24, 2021, at 1:56 AM, Aki Tuomi <aki.tuomi@open-xchange.com> wrote:


On 22/05/2021 20:36 Steven Smith <steve.t.smith@gmail.com> wrote:


I’m trying to configure dovecot to use mailbox subfolders that look like both foo/bar on the IMAP client and the filesystem.

But the subfolders created all look like foo.bar, not foo/bar with a proper nesting structure.

This also happens when the folder ‘bar’ is moved into the folder ‘foo’—A new folder `foo.bar’ is created.

I believe that i’m following the configuration rules at https://wiki.dovecot.org/MailboxFormat/Maildir#Maildir_and_filesystems and https://wiki.dovecot.org/MailLocation/Maildir. This issue happens whether I set separator to its default, ‘.’, or ‘/’:


Namespace separator and filesystem separator are different. It should be using / as *filesystem* separator with LAYOUT=FS, and it should be using namespace separator / since you've specified it.

Can you do `doveadm exec imap -o mail_debug=yes -u target-user` and provide logs after `1 SELECT INBOX`

Aki