On Fri, Apr 17, 2009 at 05:43:01PM -0400, Timo Sirainen wrote:
It would be possible to do both. The INBOX/ could be set up as a hidden namespace and the "" namespace would be the default one. Or is there a reason why you wouldn't want "" namespace to show up anything?
Crying users, because suddenly something in their clients looks "very" different :) I have many of those.
Or you could also see if you could create a private namespace with prefix="#User/" and subscriptions=yes, perhaps with location=maildir:/var/lib/dovecot/empty:CONTROL=~/Maildir/shared where the empty directory would be a world-readable non-writable empty directory. That namespace should then catch subscriptions to shared mailboxes.
I tried this. The following is logged:
Apr 18 00:12:01 asterix dovecot: IMAP(markus@example.com): fchown(/var/spool/dovecot/users/example.com/markus/Maildir/control/shared/subscriptions.lock, -1, 0) failed: Operation not permitted Apr 18 00:12:01 asterix dovecot: IMAP(markus@example.com): file_dotlock_open() failed with subscription file /var/spool/dovecot/users/example.com/markus/Maildir/control/shared/subscriptions: Operation not permitted