[Dovecot] Shared folder prefix listed multiple times with dovecot 2.1.1
Hi,
after upgrading from 2.0.18 to 2.1.1 I noticed that I could not use shared folders with mutt anymore. 2.1 lists the shared namespace prefix once per user sharing an folder in LIST "" "%".
I also noticed, that with 2.1 the user folder (Shared/<username>) is no longer tagged as \NoSelect.
Is this the intended behaviour and mutt simply cannot cope with it or is it a dovecot problem?
Here an example with three users sharing a folder to the logged in user with Dovecot 2.1.1:
2 LIST "" "*"
- LIST (\HasNoChildren) "/" "INBOX"
- LIST (\HasChildren) "/" "Shared/test"
- LIST (\HasNoChildren) "/" "Shared/test/Share"
- LIST (\HasChildren) "/" "Shared/test2"
- LIST (\HasNoChildren) "/" "Shared/test2/Share2"
- LIST (\HasChildren) "/" "Shared/test3"
- LIST (\HasNoChildren) "/" "Shared/test3/Share3" 2 OK List completed.
2 LIST "" "%"
- LIST (\HasNoChildren) "/" "INBOX"
- LIST (\Noselect \HasChildren) "/" "Shared"
- LIST (\Noselect \HasChildren) "/" "Shared"
- LIST (\Noselect \HasChildren) "/" "Shared" 2 OK List completed.
The same three users and config with Dovecot 2.0.18:
2 LIST "" "*"
- LIST (\HasNoChildren) "/" "INBOX"
- LIST (\Noselect \HasChildren) "/" "Shared/test"
- LIST (\Noselect \HasChildren) "/" "Shared/test2"
- LIST (\Noselect \HasChildren) "/" "Shared/test3"
- LIST (\HasNoChildren) "/" "Shared/test/Share"
- LIST (\HasNoChildren) "/" "Shared/test2/Share2"
- LIST (\HasNoChildren) "/" "Shared/test3/Share3" 2 OK List completed.
2 LIST "" "%"
- LIST (\HasNoChildren) "/" "INBOX"
- LIST (\Noselect \HasChildren) "/" "Shared" 2 OK List completed.
Markus
# 2.1.1: /opt/dovecot-2.1/etc/dovecot/dovecot.conf # OS: Linux 3.2.0-1-amd64 x86_64 Debian wheezy/sid auth_mechanisms = plain login disable_plaintext_auth = no listen = 192.168.56.11 mail_location = maildir:~/Maildir mail_plugins = acl managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave namespace { inbox = yes location = prefix = separator = / subscriptions = yes type = private } namespace { inbox = no list = children location = maildir:%%h/Maildir:INDEX=~/Maildir/index/shared/%%u prefix = Shared/%%u/ separator = / subscriptions = no type = shared } passdb { args = /opt/dovecot-2.1/etc/dovecot/passwd driver = passwd-file } plugin { acl = vfile acl_anyone = allow acl_shared_dict = file:/var/lib/vdovecot/shared-mailboxes.db } protocols = imap service auth { unix_listener auth-userdb { mode = 0600 user = vdovecot } } ssl = no userdb { args = /opt/dovecot-2.1/etc/dovecot/passwd driver = passwd-file } verbose_proctitle = yes protocol imap { mail_plugins = acl imap_acl }
On 8.3.2012, at 21.18, Markus Petri wrote:
after upgrading from 2.0.18 to 2.1.1 I noticed that I could not use shared folders with mutt anymore. 2.1 lists the shared namespace prefix once per user sharing an folder in LIST "" "%".
I also noticed, that with 2.1 the user folder (Shared/<username>) is no longer tagged as \NoSelect.
Is this the intended behaviour and mutt simply cannot cope with it or is it a dovecot problem?
Both. Dovecot shouldn't send duplicates, but mutt shouldn't break even if it did. Also Dovecot probably should add \Noselect, especially if the mailbox isn't really selectable (there's some weirdness between shared/user being equal to shared/user/INBOX, but I'm not sure what to do about it).
On Thu, 2012-03-08 at 21:36 +0200, Timo Sirainen wrote:
On 8.3.2012, at 21.18, Markus Petri wrote:
after upgrading from 2.0.18 to 2.1.1 I noticed that I could not use shared folders with mutt anymore. 2.1 lists the shared namespace prefix once per user sharing an folder in LIST "" "%".
I also noticed, that with 2.1 the user folder (Shared/<username>) is no longer tagged as \NoSelect.
Is this the intended behaviour and mutt simply cannot cope with it or is it a dovecot problem?
Both. Dovecot shouldn't send duplicates, but mutt shouldn't break even if it did.
This is a bit difficult to fix. I'll probably leave it until v2.2.
Also Dovecot probably should add \Noselect, especially if the mailbox isn't really selectable (there's some weirdness between shared/user being equal to shared/user/INBOX, but I'm not sure what to do about it).
These should fix this:
http://hg.dovecot.org/dovecot-2.1/rev/65a75939ac2c http://hg.dovecot.org/dovecot-2.1/rev/55586f4a86f1
On Thu, 15 Mar 2012 14:22:11 +0200 Timo Sirainen <tss@iki.fi> wrote:
Also Dovecot probably should add \Noselect, especially if the mailbox isn't really selectable (there's some weirdness between shared/user being equal to shared/user/INBOX, but I'm not sure what to do about it).
These should fix this:
http://hg.dovecot.org/dovecot-2.1/rev/65a75939ac2c http://hg.dovecot.org/dovecot-2.1/rev/55586f4a86f1
Yes, those fix the problem. Thanks.
participants (2)
-
Markus Petri
-
Timo Sirainen