[Dovecot] how to announce shared folders to clients using non-default mail prefix
Tom Lieuallen
toml at engr.orst.edu
Wed Jun 13 19:58:19 EEST 2012
On 6/13/12 6:38 AM, Timo Sirainen wrote:
> On Tue, 2012-06-12 at 11:16 -0700, Tom Lieuallen wrote:
>> namespace {
>> hidden = yes
>> inbox = no
>> list = children
>> location = maildir:/a1/dove-shared:INDEX=/a2/imap-index/dove-shared/%u
>> prefix = iphonemail/sharedimap/
>> separator = /
>> type = shared
>
> type=public and same for the other shared namespace. The type=shared
> namespaces are for mailboxes shared between users.
>
Unfortunately, it still isn't working.
namespace {
inbox = yes
location =
prefix =
separator = /
type = private
}
namespace {
hidden = yes
inbox = no
list = children
location = maildir:/a1/dove-shared:INDEX=/a2/imap-index/dove-shared/%u
prefix = sharedimap/
separator = /
type = public
}
namespace {
hidden = yes
inbox = no
list = children
location = maildir:/a1/dove-shared:INDEX=/a2/imap-index/dove-shared/%u
prefix = iphonemail/sharedimap/
separator = /
type = public
}
l list "" *
* LIST (\Noselect \HasChildren) "/" "foo1"
* LIST (\NoInferiors \UnMarked) "/" "foo1/folder1"
* LIST (\Noselect \HasChildren) "/" "iphonemail"
* LIST (\NoInferiors \Marked) "/" "iphonemail/foo1"
* LIST (\NoInferiors \UnMarked) "/" "Sent"
* LIST (\NoInferiors \UnMarked) "/" "Trash"
* LIST (\HasNoChildren) "/" "INBOX"
* LIST (\HasNoChildren) "/" "sharedimap/cesupport"
* LIST (\HasNoChildren) "/" "sharedimap/mimesupport"
* LIST (\HasNoChildren) "/" "iphonemail/sharedimap/cesupport"
* LIST (\HasNoChildren) "/" "iphonemail/sharedimap/mimesupport"
l OK List completed.
l list "iphonemail/" *
* LIST (\NoInferiors \Marked) "/" "iphonemail/foo1"
l OK List completed.
l list "sharedimap/" *
* LIST (\HasNoChildren) "/" "sharedimap/cesupport"
* LIST (\HasNoChildren) "/" "sharedimap/mimesupport"
l OK List completed.
l list "iphonemail/sharedimap/" *
* LIST (\HasNoChildren) "/" "iphonemail/sharedimap/cesupport"
* LIST (\HasNoChildren) "/" "iphonemail/sharedimap/mimesupport"
l OK List completed.
It seems to me like the logic for deciding which namespaces to follow is
something like this:
* If mail prefix = "", inspect and potentially use all namespaces
* else look in default namespace for subdirectories matching prefix
listed _AND_ look for namespaces that are exact matches for the prefix
passed.
In that 'else' case, it does not appear to look for namespaces where the
mail prefix is a subset.
thank you
Tom Lieuallen
More information about the dovecot
mailing list