[Dovecot] Folder layout after Cyrus to Dovecot migration

Keith Edmunds kae at midnighthax.com
Fri Nov 23 13:54:05 EET 2012


Problem: We have some folders (eg, Trash) appearing both as sibling folders
to INBOX and as subfolders to INBOX. We want them only to appear at the
sibling level.

In order to put some folders (Sent, Trash, some others) at a peer
level to INBOX, and all other folders under INBOX, we've defined
namespaces as follows:

--------------------------------------------------------------------------------
mail_location =
   maildir:/shared/imapmail/users/%u:INBOX=/shared/imapmail/users/%u:LAYOUT=fs

namespace private {
   separator = /
   prefix = "INBOX/"
   inbox = yes
}
namespace private {
   separator = /
   prefix = "Trash/"
   location = maildir:/shared/imapmail/users/%u/Trash:LAYOUT=fs
   inbox = no
}
--------------------------------------------------------------------------------

In the file system, the mail_location for each user has all the top-level
mail folders plus the cur, tmp and new directories for INBOX, so, for
example, there is a directory in mail_location called "Trash".

Is there a way to configure Dovecot to show Trash at the top level (as the
last namespace definition above does), yet not also show it as a subfolder
of INBOX?

Thanks,
Keith
-- 
We're looking for smart Linux people:
http://www.tiger-computing.co.uk/jobs



More information about the dovecot mailing list