Patrick Westenberg
2010-Sep-06 22:54 UTC
[Dovecot] Sub-Sub-Subfolders not shown after converting from maildir to mdbox
Hi again, I just recognized a problem concerning subfolders after converting from maildir to mdbox. Thunderbird and SeaMonkey don?t show folders that are subfolders of subfolders. Have a look at the filesystem: discovery:/var/mail/domain.tld/patrick/mdbox/mailboxes/Folder1/Folder2# ls -l insgesamt 8 drwx------ 2 vmail vmail 4096 5. Sep 23:42 dbox-Mails drwx------ 3 vmail vmail 4096 5. Sep 23:42 Folder3 Using Thunderbird or Seamonkey, Folder1 and Folder2 are listed and can be subscribed to but Folder3 never gets listed. If I create Folder4 as a new subfolder from Folder2 it works, so the problem only exists with existing folders from converted maildirs. I had to use a namespace for the convert from my old Courier IMAP. Any hints? Regards Patrick # 2.0.1: /usr/local/etc/dovecot/dovecot.conf # OS: Linux 2.6.26-2-amd64 x86_64 Debian 5.0.5 auth_mechanisms = plain login mail_gid = vmail mail_location = mdbox:~/mdbox mail_plugins = quota mail_uid = vmail managesieve_notify_capability = mailto managesieve_sieve_capability = comparator-i;octet comparator-i;ascii-casemap fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date namespace { inbox = yes location prefix = INBOX. separator = . type = private } passdb { args = /usr/local/etc/dovecot/dovecot-sql.conf.ext driver = sql } plugin { quota = maildir:User quota } protocols = imap sieve service imap-login { service_count = 1 } service managesieve-login { inet_listener sieve { port = 4190 } inet_listener sieve_deprecated { port = 2000 } service_count = 1 } ssl = required ssl_cert = </etc/ssl/certs/imap.crt ssl_key = </etc/ssl/certs/imap.key userdb { args = /usr/local/etc/dovecot/dovecot-sql.conf.ext driver = sql } protocol imap { mail_plugins = $mail_plugins imap_quota }
Timo Sirainen
2010-Sep-08 16:07 UTC
[Dovecot] Sub-Sub-Subfolders not shown after converting from maildir to mdbox
On Tue, 2010-09-07 at 00:54 +0200, Patrick Westenberg wrote:> I just recognized a problem concerning subfolders after converting from > maildir to mdbox. Thunderbird and SeaMonkey don?t show folders that are > subfolders of subfolders.I remember some people complaining about the same thing with maildir too. Maybe it happens somewhat randomly. The other explanation is then that LAYOUT=fs works a bit differently than LAYOUT=maildir++. You could try if mdbox would work better by adding :LAYOUT=maildir++ to your mail_location (of course, you need to change your existing layout to the maildir++ one by e.g. running dsync again).
Patrick Westenberg
2010-Sep-08 17:28 UTC
[Dovecot] Sub-Sub-Subfolders not shown after converting from maildir to mdbox
Timo Sirainen schrieb:> Or just from mdbox:~/mdbox to mdbox:~/mdbox:LAYOUT=maildir++This doesn?t work: Initialization failed: Namespace 'INBOX.': Mailbox list driver maildir++: maildir_name not supported by this driver or without namespace: Initialization failed: Initializing mail storage from mail_location setting failed: Mailbox list driver maildir++: maildir_name not supported by this driver
William Blunn
2010-Sep-08 18:04 UTC
[Dovecot] Sub-Sub-Subfolders not shown after converting from maildir to mdbox
On 06/09/2010 23:54, Patrick Westenberg wrote:> I just recognized a problem concerning subfolders after converting > from maildir to mdbox. Thunderbird and SeaMonkey don?t show folders > that are subfolders of subfolders. > > Using Thunderbird or Seamonkey, Folder1 and Folder2 are listed and can > be subscribed to but Folder3 never gets listed. If I create Folder4 as > a new subfolder from Folder2 it works, so the problem only exists with > existing folders from converted maildirs.I can replicate this problem using Thunderbird 3.0.6 over Dovecot 2.0.1 using mdbox. If a third level folder (e.g. "foo/bar/baz") appears on the server (i.e. not at the bidding of Thunderbird), then Thunderbird 3.0.6 will not notice it, even if you bring up the "Subscribe" dialog and click "refresh". But if you create a third level folder through Thunderbird, then Thunderbird will see it. If the third level folder appears on the server, you can pursuade Thunderbird to see it by manually adding the folder name to the subscriptions file on the server and re-starting Thunderbird. But manual IMAP looks to be right. m LIST "" "*" * LIST (\HasNoChildren) "/" "Trash" * LIST (\HasNoChildren) "/" "INBOX" * LIST (\HasChildren) "/" "foo" * LIST (\HasChildren) "/" "foo/bar" * LIST (\HasNoChildren) "/" "foo/bar/baz" m OK List completed. Bill
Patrick Westenberg
2010-Sep-08 18:19 UTC
[Dovecot] Sub-Sub-Subfolders not shown after converting from maildir to mdbox
William Blunn schrieb:> I can replicate this problem using Thunderbird 3.0.6 over Dovecot 2.0.1 > using mdbox. > > If a third level folder (e.g. "foo/bar/baz") appears on the server (i.e. > not at the bidding of Thunderbird), then Thunderbird 3.0.6 will not > notice it, even if you bring up the "Subscribe" dialog and click "refresh".The problem also exists with maildir
William Blunn
2010-Sep-08 18:24 UTC
[Dovecot] Sub-Sub-Subfolders not shown after converting from maildir to mdbox
On 06/09/2010 23:54, Patrick Westenberg wrote:> I just recognized a problem concerning subfolders after converting > from maildir to mdbox. Thunderbird and SeaMonkey don?t show folders > that are subfolders of subfolders. > > Using Thunderbird or Seamonkey, Folder1 and Folder2 are listed and can > be subscribed to but Folder3 never gets listed. If I create Folder4 as > a new subfolder from Folder2 it works, so the problem only exists with > existing folders from converted maildirs.I've just run a test with a virgin Maildir setup on Dovecot 2.0.1. After raising three levels of folder on the server side ("foo", "foo.bar", and "foo.bar.baz"), Thunderbird 3.0.6 was only able to see into the first two levels. Listing folders through a manual IMAP looks OK. I also ran a test on a virgin mdbox setup with a Namespace to force the separator into a dot, to make it behave similarly to Maildir at the IMAP level). Same results; Thunderbird 3.0.6 can only see into the first two folder levels. Listing folders through a manual IMAP looks OK. So I don't think the problem is mdbox. I suspect there is a bug in Thunderbird 3.0.6 wherein it cannot subscribe to folders more than two levels deep. I think you didn't notice the problem before because all folders were already subscribed. I was able to come up with a sort-of workaround which is to manually add the folder name to the subscriptions file on the server side. Thunderbird is then able to see the folder (may need to restart Thunderbird). Maybe you could drag the subscriptions data over from the old Maildir folders over into the mdbox folders? If you took the default separators (dot under Maildir and slash under mdbox) then you'd need to change those in the subscriptions files ("sed -e 's:\.:/:g' < Maildir/subscriptions > mdbox/subscriptions"perhaps) or set up a Namespace to force the new mdbox config to use a dot as the separator. Bill