summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2016-07-06 17:51:28 +0200
committerGuilhem Moulin <guilhem@fripost.org>2016-07-06 17:51:28 +0200
commitd237ec31f785c801b29d679f10f8f2d618ff1585 (patch)
tree0cb3b544ddf758ffbcc12fcc4a7076adf98fc7a0
parent8e24d7703401e1858a73eb1d713b4c80b3d799a9 (diff)
IMAP: don't include mailbox under the virtual namespace in LIST responses.
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.
-rw-r--r--roles/IMAP/files/etc/dovecot/conf.d/10-mail.conf2
-rw-r--r--roles/webmail/tasks/roundcube.yml1
2 files changed, 2 insertions, 1 deletions
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'" }