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 at 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. :) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20100416/9745ff96/attachment-0002.bin>
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 at pasteur.fr> | P?le informatique - syst?mes et r?seau