Lutz Preßler
2010-Oct-06 15:06 UTC
[Dovecot] problem with subscriptions=no and changed separator ?
Hello,
Dovecot 2.0.5+ (Debian "automatic package" 2.0.5-0~auto+5).
If I use the following namespace definitions
namespace personal {
inbox = yes
location = maildir:~/Maildir
separator = ^
prefix type = private
}
namespace others {
type = shared
separator = ^
prefix = shared^%%u^
location = maildir:%%h/Maildir:INDEX=~/Maildir/shared/%%u
subscriptions = no
list = children
}
namespace virtual {
location = virtual:~/Maildir/virtual:LAYOUT=maildir++
separator = ^
prefix = virtual^
type = private
}
(virtual should not matter, but I have not tested without.)
I have problems with subscriptions for the shared mailboxes:
SUBSCRIBE ^shared^user^box leads to entry
shared^user^box
in ~/Maildir/subscriptions file. All subscriptions for folders in
personal namespace use the "layout" separator (".") thought.
LSUB "" "*" does not show the just subscribed folder,
but it does after I manually change the entry to read
shared.user.box
Bug?
Thanks for your work,
Lutz
--
Lutz Pre?ler <Lutz.Pressler at SerNet.DE> http://www.SerNet.DE/
SerNet Service Network GmbH, Bahnhofsallee 1b, D-37081 G?ttingen
Tel.: +49-551-370000-2, FAX: +49-551-370000-9
AG G?ttingen, HRB 2816, GF: Dr. Johannes Loxen
Timo Sirainen
2010-Oct-06 15:20 UTC
[Dovecot] problem with subscriptions=no and changed separator ?
On Wed, 2010-10-06 at 17:06 +0200, Lutz Pre?ler wrote:> Dovecot 2.0.5+ (Debian "automatic package" 2.0.5-0~auto+5).I did several fixes to this before 2.0.5..> I have problems with subscriptions for the shared mailboxes: > SUBSCRIBE ^shared^user^box leads to entry > shared^user^box > in ~/Maildir/subscriptions file.That is correct.> All subscriptions for folders in > personal namespace use the "layout" separator (".") thought. > LSUB "" "*" does not show the just subscribed folder,Do you see any errors logged? Does LSUB output show anything about "shared"?> but it does after I manually change the entry to read > shared.user.boxThis isn't right. That's a subscription for "shared.user.box" in your private namespace, not a subscription for a shared mailbox. Although they currently do show up identically.
Lutz Preßler
2010-Oct-18 09:06 UTC
[Dovecot] changed separator/sharing of subfolders (Re: problem with subscriptions=no and changed separator ?)
Hello, another problem with changed separator (2.0.5-0~auto+23 (b8803a1e2dc2)). I tried sharing virtual folders (see next mail), and noticed that sharing of subfolders does not seem to work if the "receiving" user has a changed separator (different separator/prefix settings through userdb_namespace attributes). As "user": 0 getacl "INBOX.test" * ACL "INBOX.test" "testuser" lrs "user" lrwstipekxacd 0 getacl "INBOX.test.test2" * ACL "INBOX.test.test2" "testuser" lrs "user" lrwstipekxacd (but also tested with more rights for testuser) As testuser with unchanged separator: 0 list "" "*" [includes:] * LIST (\Noselect \HasChildren) "." "INBOX.shared.user" * LIST (\HasChildren) "." "INBOX.shared.user.test" * LIST (\HasNoChildren) "." "INBOX.shared.user.test.test2" and 0 select INBOX.shared.lpmail.test.test2 works. As testuser with separator=^: 0 list "" "*" [includes:] * LIST (\Noselect \HasChildren) "^" "INBOX^shared^lpmail" * LIST (\HasNoChildren) "^" "INBOX^shared^lpmail^test" INBOX^shared^lpmail^test^test2 is missing. 0 select INBOX^shared^lpmail^test2 0 NO Mailbox doesn't exist: INBOX^shared^lpmail^test2 (also tested without having everything under INBOX). No error messages in log. Regards, Lutz -- Lutz Pre?ler <Lutz.Pressler at SerNet.DE> http://www.SerNet.DE/ SerNet Service Network GmbH, Bahnhofsallee 1b, D-37081 G?ttingen Tel.: +49-551-370000-2, FAX: +49-551-370000-9 AG G?ttingen, HRB 2816, GF: Dr. Johannes Loxen