[Dovecot] flags, keywords in a shared mailbox setup
Hello Timo,
I'm trying to get a clear understanding of dovecot's (1.2.x) flags and keywords sharing possibilities or impossibilities in a shared-mailboxes setup.
By definition, a shared mailbox is a mailbox from a personal namespace which has been made available to someone else who sees it in a shared namespace.
There can be some combinatorics according to the fact that INDEX and CONTROL files location can either be user-dependent or user-independent and this in either the private or the shared namespace.
Besides, it's not clear to me if the 'dovecot-shared' file is still relevant in 1.2x and shared-namespaces to store flags only in indexes.
So what combination is to be avoided because it would break things ?
More specifically :
. is, in 1.2x, the method for having private flags of a shared mailbox still to have the 'dovecot-shared' file (in order to store flags in indexes) ?
. how can shared keywords in a shared mailbox even work ? If they're shared (how ? by pointing CONTROL to the same user-independent location ?), keywords known by a client (user1) won't necessary be known or have the same meaning for another client (user2), will they ?
[Note : isn't it the same event with no shared mailboxes but with one user using several clients ?]
But, if they're private, they have to be stored outside the filename : how can we do that ?
Thanks
-- Thomas Hummel | Institut Pasteur hummel@pasteur.fr | Pôle informatique - systèmes et réseau
On Thu, 2010-04-15 at 17:48 +0200, Thomas Hummel wrote:
More specifically :
. is, in 1.2x, the method for having private flags of a shared mailbox still to have the 'dovecot-shared' file (in order to store flags in indexes) ?
dovecot-shared currently only controls \Seen flag. All other flags are always shared.
. how can shared keywords in a shared mailbox even work ? If they're shared (how ? by pointing CONTROL to the same user-independent location ?), keywords known by a client (user1) won't necessary be known or have the same meaning for another client (user2), will they ?
If you don't share control directory, keywords can get more or less broken because different users have different mappings for maildir char<->keyword name. So you should share the control directory.
[Note : isn't it the same event with no shared mailboxes but with one user using several clients ?]
Exactly. Probably not much of a problem.
But, if they're private, they have to be stored outside the filename : how can we do that ?
Currently you can't. Although changing the code to support it probably wouldn't be too difficult. I need some kind of a design plan for this some day. :)
On Fri, Apr 16, 2010 at 03:02:47PM +0300, Timo Sirainen wrote:
If you don't share control directory, keywords can get more or less broken because different users have different mappings for maildir char<->keyword name. So you should share the control directory.
[Note : isn't it the same event with no shared mailboxes but with one user using several clients ?]
Exactly. Probably not much of a problem.
Why not much of a problem ? Sure there will be only one mapping but cannot the keyword meaning be different between different user agent of even the same user ? Can't we end up in a message tagged as "important" in a client being tagged as "personnal" in another client ?
-- Thomas Hummel | Institut Pasteur hummel@pasteur.fr | Pôle informatique - systèmes et réseau
On Fri, 2010-04-16 at 17:06 +0200, Thomas Hummel wrote:
On Fri, Apr 16, 2010 at 03:02:47PM +0300, Timo Sirainen wrote:
If you don't share control directory, keywords can get more or less broken because different users have different mappings for maildir char<->keyword name. So you should share the control directory.
[Note : isn't it the same event with no shared mailboxes but with one user using several clients ?]
Exactly. Probably not much of a problem.
Why not much of a problem ?
Because I haven't yet heard complains about this from people?
Sure there will be only one mapping but cannot the keyword meaning be different between different user agent of even the same user ? Can't we end up in a message tagged as "important" in a client being tagged as "personnal" in another client ?
Dunno. There are two possibilities here:
a) Client uses "Important" and "Personal" keywords -> no problem here.
b) Client 1 uses $Label1 keyword to mean "Important", while client 2 uses $Label1 to mean "Personal". I know TB used to use $Label* keywords. I don't know if it still does. I don't know if any other client maps them to conflicting names.
participants (2)
-
Thomas Hummel
-
Timo Sirainen