On 17 Aug 2015, at 19:11, Chris Laif chris.laif@googlemail.com wrote:
Hi.
If $otheruser shares a mailbox to $myuser, my private index is stored in *my* Maildir, according to this template (from the dovecot docs):
mail_location = maildir:%%h/Maildir:INDEXPVT=%h/Maildir/shared/%%u
If $otheruser renames the shared mailbox, all my private mail flags (Seen) are lost because my mailclient couldn't find the private index anymore.
Is there any way to store the private index within the shared mailbox? If $otheruser renames the mailbox, the index will be 'migrated' as well. Something like this:
/data/mails/$otheruser/Maildir/.MagicSharedFolder/shared/$myuser.dovecot.index.pvt.log
I see no way on how to do craft a INDEXPVT for this.
If you use LAYOUT=index it'll use mailbox GUIDs instead of mailbox names in the directories. Renaming a mailbox won't affect the GUID. But you'd need to do a somewhat larger migration then. Also I'm not sure if LAYOUT=index has been tested with shared mailboxes or with Maildir.