[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@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
On Mon, 2010-10-18 at 11:06 +0200, Lutz Preßler wrote:
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).
The separators are always stored using the physical separator and only converted to namespace's virtual separator when needed. So your question comes down to "shared mailboxes don't work if I change namespace separator to different from the physical separator". But people have been doing that for a long time..
If you set mail_debug=yes, what does it log with separator=. and with separator=^? Also does it happen to work if you set separator=/?
On Mon, 18 Oct 2010, Timo Sirainen wrote:
On Mon, 2010-10-18 at 11:06 +0200, Lutz Preßler wrote:
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 Subfolder is important. Mailbox directly within the namespace does work. separator (different separator/prefix settings through userdb_namespace attributes). (I only partly substituted "lpmail" with "user" in my mail, sorry for that. I'll use the unchanged "lpmail" username now.)
The separators are always stored using the physical separator and only converted to namespace's virtual separator when needed. So your question comes down to "shared mailboxes don't work if I change namespace separator to different from the physical separator". But people have been doing that for a long time.. Are you sure? (for deeper levels)
If you set mail_debug=yes, what does it log with separator=. and with separator=^? The main difference is Debug: acl: Mailbox not in dovecot-acl-list: INBOX^shared^lpmail^test^test2
~lpmail/Maildir/dovecot-acl-list contains 1287438561 test 1287390299 test.test2 1285453373 in2009
But even if I delete ~lpmail/Maildir/dovecot-acl-list, with separator set to ^, test.test2 is not included in the recreated file (and still not listed).
(Not using global-acls at the moment. But debug output also contains Debug: acl vfile: file /etc/dovecot/global-acls/INBOX^shared^lpmail^test not found Shouldn't that be file /etc/dovecot/global-acls/INBOX.shared.lpmail.test as per wiki2.dovecot.org/ACL ? And strace shows that it rellay tries to open the path with ^s.)
Also does it happen to work if you set separator=/? No, same problem.
Thanks, Lutz
-- Lutz Preßler Lutz.Pressler@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
participants (2)
-
Lutz Preßler
-
Timo Sirainen