Hi all,
does anybody here use MacOS (Catalina) Mail, who can confirm that subfolders (i.e. folders inside folders) work for them?
It seems that I cannot create/access Maildir subfolders at all. Subfolders created in Mail show up as '.folder\2esubfolder' on disk, suggesting that Apple Mail is URL-coding the dot separator before it passes it onto Dovecot. No such translation takes place when interpreting the IMAP tree though, resulting in subfolders rendered as plain entries with the dot separator preserved.
Subfolders can be created from elsewhere (SoGO, Roundube, Thunderbird) just fine and work here just fine, suggesting that all is well in terms of Dovecot configuration. Subfolders created here though show up as a proper hierarchy in Apple Mail, but their contents is not displayed, so the user thinks the subfolder is empty.
This definitely used to work fine in the past.
Running 2.3.10.1 as part of the Mailcow suite.
-F
On 11 Jul 2020, at 08:05, Filip Hajný <filip@hajny.net> wrote:
does anybody here use MacOS (Catalina) Mail, who can confirm that subfolders (i.e. folders inside folders) work for them?
Yes, works fine on Catalina (and, if you're curious, Big Sur).
It seems that I cannot create/access Maildir subfolders at all. Subfolders created in Mail show up as '.folder\2esubfolder' on disk, suggesting that Apple Mail is URL-coding the dot separator before it passes it onto Dovecot. No such translation takes place when interpreting the IMAP tree though, resulting in subfolders rendered as plain entries with the dot separator preserved.
That is odd, but I can't give you suggestions as it's always worked (I've been using Mail.app as my primary MUA since Mac OX X 10.2 or so, when I got off Eudora.
Subfolders can be created from elsewhere (SoGO, Roundube, Thunderbird) just fine and work here just fine, suggesting that all is well in terms of Dovecot configuration. Subfolders created here though show up as a proper hierarchy in Apple Mail, but their contents is not displayed, so the user thinks the subfolder is empty.
I just created a subfolder in Apple mail. It shows up on the server as .list.Subfolder I drug your message into the folder, and the message shows up in Mail.app and shows up in the subfolder on the server
# ls -lnR .lists.Subfolder [10:40] [/usr/local/virtual/kremels@kreme.com/Maildir] total 56 drwx------ 2 89 89 512 Jul 11 10:41 cur -rw------- 1 89 89 21 Jul 11 10:41 dovecot-keywords -rw------- 1 89 89 109 Jul 11 10:41 dovecot-uidlist -rw------- 1 89 89 1924 Jul 11 10:41 dovecot.index.cache -rw------- 1 89 89 868 Jul 11 10:41 dovecot.index.log -rw------- 1 89 89 0 Jul 11 10:35 maildirfolder drwx------ 2 89 89 512 Jul 11 10:35 new drwx------ 2 89 89 512 Jul 11 10:41 tmp
.lists.Subfolder/cur: total 16 -rw------- 1 89 89 6035 Jul 11 08:05 1594476342.M306501P20070.mail.covisp.net,S=6035,W=6154:2,Sab
.lists.Subfolder/new: total 0
.lists.Subfolder/tmp: total 0
This definitely used to work fine in the past.
Running 2.3.10.1 as part of the Mailcow suite.
I'm not familiar with that. Is that running dovecot on your Mac? My server is a FreeBSD 12.1 machine running dovecot-2.3.10.1_2.
-- "Are you pondering what I'm pondering?" "I think so, Brain, but where are we going to get a trained octopus at this time of night?"
I just created a subfolder in Apple mail. It shows up on the server as .list.Subfolder I drug your message into the folder, and the message shows up in Mail.app and shows up in the subfolder on the server
# ls -lnR .lists.Subfolder [10:40] [/usr/local/virtual/kremels@kreme.com/Maildir] total 56 drwx------ 2 89 89 512 Jul 11 10:41 cur -rw------- 1 89 89 21 Jul 11 10:41 dovecot-keywords -rw------- 1 89 89 109 Jul 11 10:41 dovecot-uidlist -rw------- 1 89 89 1924 Jul 11 10:41 dovecot.index.cache -rw------- 1 89 89 868 Jul 11 10:41 dovecot.index.log -rw------- 1 89 89 0 Jul 11 10:35 maildirfolder drwx------ 2 89 89 512 Jul 11 10:35 new drwx------ 2 89 89 512 Jul 11 10:41 tmp
I’ve created a test server and found out that the driving factor is what the namespace separator
is set to. If set to /, Apple Mail gets confused and URL-encodes it when creating a new folder. If the separator is blank (as set by default) or set to e.g. a dot, everything works just fine.
Based on example and docs I found, a slash character should be good or even recommended, suggesting this is some kind of bug in Apple Mail, but I’m not versed enough in the IMAP related RFCs to understand.
This definitely used to work fine in the past.
Running 2.3.10.1 as part of the Mailcow suite.
I'm not familiar with that. Is that running dovecot on your Mac? My server is a FreeBSD 12.1 machine running dovecot-2.3.10.1_2.
Mailcow is a suite of server SW based on Dovecot & Postfix, intended to provide a full-featured mail server. In effect I’m running Dovecot in a Docker container on Alpine Linux.
-F
On 11 Jul 2020, at 13:50, Filip Hajný <filip@hajny.net> wrote:
I’ve created a test server and found out that the driving factor is what the namespace
separator
is set to. If set to /, Apple Mail gets confused and URL-encodes it when creating a new folder. If the separator is blank (as set by default) or set to e.g. a dot, everything works just fine.Based on example and docs I found, a slash character should be good or even recommended, suggesting this is some kind of bug in Apple Mail, but I’m not versed enough in the IMAP related RFCs to understand.
Interesting. I have always and only used '.' For the IMAP separator. I believe this was either reacquired or the default way back when with cyrus and I never changed it.
-- Margo: P.S. We still hate you. but it's the twenty-first century. It shouldn't be this hard for a girl to get an evil demigod abortion. Eliot: And we're emotionally advanced. We can hold resentment and sympathy for a person at the same time.
On 11. Jul 2020, at 22.50, Filip Hajný <filip@hajny.net> wrote:
I just created a subfolder in Apple mail. It shows up on the server as .list.Subfolder I drug your message into the folder, and the message shows up in Mail.app and shows up in the subfolder on the server
# ls -lnR .lists.Subfolder [10:40] [/usr/local/virtual/kremels@kreme.com/Maildir] total 56 drwx------ 2 89 89 512 Jul 11 10:41 cur -rw------- 1 89 89 21 Jul 11 10:41 dovecot-keywords -rw------- 1 89 89 109 Jul 11 10:41 dovecot-uidlist -rw------- 1 89 89 1924 Jul 11 10:41 dovecot.index.cache -rw------- 1 89 89 868 Jul 11 10:41 dovecot.index.log -rw------- 1 89 89 0 Jul 11 10:35 maildirfolder drwx------ 2 89 89 512 Jul 11 10:35 new drwx------ 2 89 89 512 Jul 11 10:41 tmp
I’ve created a test server and found out that the driving factor is what the namespace
separator
is set to. If set to /, Apple Mail gets confused and URL-encodes it when creating a new folder. If the separator is blank (as set by default) or set to e.g. a dot, everything works just fine.Based on example and docs I found, a slash character should be good or even recommended, suggesting this is some kind of bug in Apple Mail, but I’m not versed enough in the IMAP related RFCs to understand.
I'm Apple user. I have separator set to / and I can create folders just fine without any encoding. Can you please record imap rawlogs where it shows what command your Mail.App is sending?
Sami
I am a mac user with Apple Mail as well I do not have any issues in creating new folders. I am also using qmail as my smtp.
Remo
On Jul 12, 2020, at 1:36 PM, Sami Ketola <sami.ketola@dovecot.fi> wrote:
On 11. Jul 2020, at 22.50, Filip Hajný <filip@hajny.net> wrote:
I just created a subfolder in Apple mail. It shows up on the server as .list.Subfolder I drug your message into the folder, and the message shows up in Mail.app and shows up in the subfolder on the server
# ls -lnR .lists.Subfolder [10:40] [/usr/local/virtual/kremels@kreme.com/Maildir] total 56 drwx------ 2 89 89 512 Jul 11 10:41 cur -rw------- 1 89 89 21 Jul 11 10:41 dovecot-keywords -rw------- 1 89 89 109 Jul 11 10:41 dovecot-uidlist -rw------- 1 89 89 1924 Jul 11 10:41 dovecot.index.cache -rw------- 1 89 89 868 Jul 11 10:41 dovecot.index.log -rw------- 1 89 89 0 Jul 11 10:35 maildirfolder drwx------ 2 89 89 512 Jul 11 10:35 new drwx------ 2 89 89 512 Jul 11 10:41 tmp
I’ve created a test server and found out that the driving factor is what the namespace
separator
is set to. If set to /, Apple Mail gets confused and URL-encodes it when creating a new folder. If the separator is blank (as set by default) or set to e.g. a dot, everything works just fine.Based on example and docs I found, a slash character should be good or even recommended, suggesting this is some kind of bug in Apple Mail, but I’m not versed enough in the IMAP related RFCs to understand.
I'm Apple user. I have separator set to / and I can create folders just fine without any encoding. Can you please record imap rawlogs where it shows what command your Mail.App is sending?
Sami
- 2020 v 22:37, Sami Ketola <sami.ketola@dovecot.fi>:
I'm Apple user. I have separator set to / and I can create folders just fine without any encoding. Can you please record imap rawlogs where it shows what command your Mail.App is sending?
I'll try on a test server. You're talking about subfolders too, right? Not just folders?
-F
On 12. Jul 2020, at 23.58, Filip Hajny <filip@hajny.net> wrote:
- 2020 v 22:37, Sami Ketola <sami.ketola@dovecot.fi>:
I'm Apple user. I have separator set to / and I can create folders just fine without any encoding. Can you please record imap rawlogs where it shows what command your Mail.App is sending?
I'll try on a test server. You're talking about subfolders too, right? Not just folders?
[root@ketola ~]# doveconf -n -S | grep namespace namespace=INBOX namespace/INBOX/name=INBOX namespace/INBOX/separator=/ namespace/INBOX/inbox=yes
-> in Mail.App "New Mailbox..." and gave name "INBOX/test"
[root@ketola ~]# doveadm mailbox list -u sami | grep INBOX INBOX/test INBOX
-> in Mail.app "New mailbox..." and gave name "INBOX/test/test"
[root@ketola ~]# doveadm mailbox list -u sami | grep INBOX INBOX/test INBOX/test/test INBOX
So can't really replicate your issue.
Sami
participants (5)
-
@lbutlr
-
Filip Hajny
-
Filip Hajný
-
Remo Mattei
-
Sami Ketola