From 89b3b2abc7860062d1438257c43400e97e829064 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 6 Mar 2018 16:13:22 +0800 Subject: mail/dovecot: update mailbox config to avoid duplicates Credit: http://www.webdesignblog.asia/web-design/hosting/prevent-duplicate-drafts-junk-sent-trash-folders-dovecot/ --- roles/mail/templates/dovecot/dovecot.conf.j2 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/roles/mail/templates/dovecot/dovecot.conf.j2 b/roles/mail/templates/dovecot/dovecot.conf.j2 index 7fcb821..3f4d627 100644 --- a/roles/mail/templates/dovecot/dovecot.conf.j2 +++ b/roles/mail/templates/dovecot/dovecot.conf.j2 @@ -257,6 +257,20 @@ namespace inbox { auto = subscribe } + # Prevent duplicate "Sent Mail", "Sent Messages", "Archives", etc. + mailbox "Sent Mail" { + special_use = \Sent + auto = no + } + mailbox "Sent Messages" { + special_use = \Sent + auto = no + } + mailbox Archives { + special_use = \Archive + auto = no + } + # If you have a virtual "All messages" mailbox: # mailbox virtual/All { # special_use = \All -- cgit v1.2.2