[Dovecot] Dovecot doesn't seem to report all subfolders to Thunderbird
Hi,
I've recently migrated my emails from a Yahoo account to my own mailserver on a VPS.
Ever since then, Thunderbird seems to have issues with the mailbox's directory structure: When I start Thunderbird, it immediately deletes the local copies of all 3rd-level folders (i.e. subfolders of a subfolder of a folder in the mailbox root). Since that didn't happen with the Yahoo account, I assume it's some kind of error or misconfiguration of Dovecot.
Here's an example of the mailbox structure: voidptr.de '-> University '-> IEEE '-> Conference "University" and "IEEE" work without problems, but "Conference" gets deleted locally every time I start Thunderbird. When I collapse and re-expand "University" in the folder panel, all subfolders (including "Conference") reappear, but Thunderbird has to re-download the contents of "Conference", since it deleted the local copies earlier.
It looks as if Dovecot only reported the topmost two folder levels when Thunderbird requests a folder list...
Is there any way I can change that behavior?
Nils
$ doveconf -n # 2.1.7: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-042stab078.22 x86_64 Debian 7.3 auth_verbose = yes mail_location = maildir:~/Maildir:LAYOUT=fs namespace { inbox = yes location = mailbox Drafts { auto = subscribe special_use = \Drafts } mailbox Junk { auto = subscribe special_use = \Junk } mailbox Sent { auto = subscribe special_use = \Sent } mailbox Trash { auto = subscribe special_use = \Trash } prefix = subscriptions = yes } passdb { args = scheme=SHA512-CRYPT username_format=%n /etc/dovecot/users driver = passwd-file } protocols = " imap" service auth { unix_listener /var/spool/postfix/private/auth { mode = 0666 } } service imap-login { inet_listener imaps { port = 0 } } ssl = required ssl_cert = </etc/ssl/certs/own/voidptr.de.pem ssl_key = </etc/ssl/certs/own/voidptr.de.key userdb { args = username_format=%n /etc/dovecot/users default_fields = home=/home/%n driver = passwd-file }
Am 18.01.2014 15:12, schrieb dovecot@voidptr.de:
Hi,
I've recently migrated my emails from a Yahoo account to my own mailserver on a VPS.
Ever since then, Thunderbird seems to have issues with the mailbox's directory structure: When I start Thunderbird, it immediately deletes the local copies of all 3rd-level folders (i.e. subfolders of a subfolder of a folder in the mailbox root). Since that didn't happen with the Yahoo account, I assume it's some kind of error or misconfiguration of Dovecot.
Here's an example of the mailbox structure: voidptr.de '-> University '-> IEEE '-> Conference "University" and "IEEE" work without problems, but "Conference" gets deleted locally every time I start Thunderbird. When I collapse and re-expand "University" in the folder panel, all subfolders (including "Conference") reappear, but Thunderbird has to re-download the contents of "Conference", since it deleted the local copies earlier.
It looks as if Dovecot only reported the topmost two folder levels when Thunderbird requests a folder list...
Is there any way I can change that behavior?
Nils
$ doveconf -n # 2.1.7: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-042stab078.22 x86_64 Debian 7.3 auth_verbose = yes mail_location = maildir:~/Maildir:LAYOUT=fs
why LAYOUT=fs ?, try without
http://wiki2.dovecot.org/MailboxFormat/Maildir
Directory Structure
By default Dovecot uses Maildir++ directory layout for organizing mailbox directories. This means that all the folders are directly inside ~/Maildir directory:
~/Maildir/new, ~/Maildir/cur and ~/Maildir/tmp directories contain
the messages for INBOX. The tmp directory is used during delivery, new messages arrive in new and read shall be moved to cur by the clients.
~/Maildir/.folder/ is a mailbox folder
~/Maildir/.folder.subfolder/ is a subfolder of a folder (ie.
"folder/subfolder")
You can also optionally use the "fs" layout by appending :LAYOUT=fs to mail_location. This makes the folder structure look like:
~/Maildir/new, ~/Maildir/cur and ~/Maildir/tmp directories contain
the messages for INBOX, just like with Maildir++.
~/Maildir/folder/ is a mailbox folder
~/Maildir/folder/subfolder/ is a subfolder of a folder
or use
http://wiki2.dovecot.org/Clients?highlight=%28thunderbird%29
Thunderbird
If you're using mbox, dbox or Maildir with :LAYOUT=fs ,
You should enable tb-extra-mailbox-sep workaround for IMAP.
namespace { inbox = yes location = mailbox Drafts { auto = subscribe special_use = \Drafts } mailbox Junk { auto = subscribe special_use = \Junk } mailbox Sent { auto = subscribe special_use = \Sent } mailbox Trash { auto = subscribe special_use = \Trash } prefix = subscriptions = yes } passdb { args = scheme=SHA512-CRYPT username_format=%n /etc/dovecot/users driver = passwd-file } protocols = " imap" service auth { unix_listener /var/spool/postfix/private/auth { mode = 0666 } } service imap-login { inet_listener imaps { port = 0 } } ssl = required ssl_cert = </etc/ssl/certs/own/voidptr.de.pem ssl_key = </etc/ssl/certs/own/voidptr.de.key userdb { args = username_format=%n /etc/dovecot/users default_fields = home=/home/%n driver = passwd-file }
Best Regards MfG Robert Schetterer
-- [*] sys4 AG
http://sys4.de, +49 (89) 30 90 46 64 Franziskanerstraße 15, 81669 München
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein
On Sat, Jan 18, 2014 at 03:54:52PM +0100, Robert Schetterer wrote:
Am 18.01.2014 15:12, schrieb dovecot@voidptr.de:
mail_location = maildir:~/Maildir:LAYOUT=fs
why LAYOUT=fs ?, try without
Some of my folder names contain dots, so that won't work. Or am I missing something there? Also, is there a reason not to? At least the wiki page [1] you linked doesn't seem to mention anything.
http://wiki2.dovecot.org/Clients?highlight=%28thunderbird%29
Thunderbird
If you're using mbox, dbox or Maildir with :LAYOUT=fs , You should enable tb-extra-mailbox-sep workaround for IMAP.
Thanks for the hint. It doesn't seem to be related to the vanishing folder problem, but it's helpful to know.
Nils
Am 18.01.2014 16:43, schrieb dovecot@voidptr.de:
On Sat, Jan 18, 2014 at 03:54:52PM +0100, Robert Schetterer wrote:
Am 18.01.2014 15:12, schrieb dovecot@voidptr.de:
mail_location = maildir:~/Maildir:LAYOUT=fs
why LAYOUT=fs ?, try without
Some of my folder names contain dots, so that won't work.
use
http://wiki2.dovecot.org/Plugins/Listescape
to solve that
Or am I
missing something there? Also, is there a reason not to? At least the wiki page [1] you linked doesn't seem to mention anything.
http://wiki2.dovecot.org/Clients?highlight=%28thunderbird%29
Thunderbird
If you're using mbox, dbox or Maildir with :LAYOUT=fs , You should enable tb-extra-mailbox-sep workaround for IMAP.
Thanks for the hint. It doesn't seem to be related to the vanishing folder problem, but it's helpful to know.
Nils
Best Regards MfG Robert Schetterer
-- [*] sys4 AG
http://sys4.de, +49 (89) 30 90 46 64 Franziskanerstraße 15, 81669 München
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein
On 2014-01-18 11:49 AM, Robert Schetterer <rs@sys4.de> wrote:
Am 18.01.2014 16:43, schrieb dovecot@voidptr.de:
Some of my folder names contain dots, so that won't work.
use
http://wiki2.dovecot.org/Plugins/Listescape
to solve that
Ok, I want to enable this, but am curious about what character others are using...
I want to use a character that is highly unlikely anyone would ever use in a folder name... so, I'm thinking something like ~, or maybe ^...
So, what characters are others using?
Also, is \ the only character that would need to be escaped (the wiki page suggests that is the case)?
Last - to enable this, all I need to do is:
- Add
mail_plugins = $mail_plugins listescape
to the main config, then
- Add
separator = ~
to my namespace, then
- Restart dovecot?
Thx
--
Best regards,
Charles
participants (3)
-
Charles Marcus
-
dovecot@voidptr.de
-
Robert Schetterer