From d237ec31f785c801b29d679f10f8f2d618ff1585 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Wed, 6 Jul 2016 17:51:28 +0200 Subject: IMAP: don't include mailbox under the virtual namespace in LIST responses. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Clients now have to use the NAMESPACE extension [RFC 2342] to discover mailboxes under the “virtual/” namespace. (Plus an extra LIST command, causing an overhead two roundtrips.) Of course the downside is that non namespace-aware clients lose access to the “virtual/{all,flagged,…}” mailboxes, but on second thought it's probably better this way rather than having such clients treat these mailboxes as regular mailboxes. --- roles/IMAP/files/etc/dovecot/conf.d/10-mail.conf | 2 +- roles/webmail/tasks/roundcube.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'roles') diff --git a/roles/IMAP/files/etc/dovecot/conf.d/10-mail.conf b/roles/IMAP/files/etc/dovecot/conf.d/10-mail.conf index cd59ebf..ef76a8d 100644 --- a/roles/IMAP/files/etc/dovecot/conf.d/10-mail.conf +++ b/roles/IMAP/files/etc/dovecot/conf.d/10-mail.conf @@ -81,7 +81,7 @@ namespace virtual { prefix = virtual/ separator = / location = virtual:/etc/dovecot/virtual:INDEX=MEMORY - list = yes + list = no hidden = no subscriptions = no } diff --git a/roles/webmail/tasks/roundcube.yml b/roles/webmail/tasks/roundcube.yml index 24f8fa7..41ef907 100644 --- a/roles/webmail/tasks/roundcube.yml +++ b/roles/webmail/tasks/roundcube.yml @@ -54,6 +54,7 @@ - { var: imap_auth_type, value: "'PLAIN'" } - { var: imap_cache, value: "null" } - { var: imap_timeout, value: "180" } + - { var: imap_force_ns, value: "true" } - { var: messages_cache, value: "false" } # SMTP - { var: smtp_server, value: "'localhost'" } -- cgit v1.2.3