[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@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 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.box
This 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.
Timo,
On Mi, 06 Okt 2010, Timo Sirainen wrote:
On Wed, 2010-10-06 at 17:06 +0200, Lutz Preßler wrote:
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. I thought that, too. But as reality is not consistent...
All subscriptions for folders in personal namespace use the "layout" separator (".") thought. LSUB "" "*" does not show the just subscribed folder,
That's not fully correct. Within the same IMAP session, LSUB yields the correct output
Do you see any errors logged? Does LSUB output show anything about "shared"? Oops.. Yes. I used a test configuration, but looked into the wrong log file. Sorry for that.
Oct 6 18:06:26 host dovecot: auth: userdb(?): Username contains disallowed character: 0x2f Oct 6 18:06:26 host dovecot: imap(testuser): Error: Namespace 'shared^user/box^': mkdir(/var/run/dovecot/user-not-found/user/box) failed: Permission denied (euid=1000(user) egid=1000(user) missing +w perm: /var/run/dovecot, euid is not dir owner) Oct 6 18:06:26 host dovecot: auth: userdb(?): Username contains disallowed character: 0x2f Oct 6 18:06:26 host dovecot: imap(testuser): Error: Namespace 'shared^user/box^': mkdir(/var/run/dovecot/user-not-found/user/box) failed: Permission denied (euid=1000(user) egid=1000(user) missing +w perm: /var/run/dovecot, euid is not dir owner) Oct 6 18:06:26 host dovecot: imap(testuser): Warning: Subscriptions file /home/testuser/Maildir/subscriptions: Ignoring invalid entry: shared^user^box
Greetings, 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 Wed, 2010-10-06 at 18:14 +0200, Lutz Preßler wrote:
Oct 6 18:06:26 host dovecot: auth: userdb(?): Username contains disallowed character: 0x2f Oct 6 18:06:26 host dovecot: imap(testuser): Error: Namespace 'shared^user/box^': mkdir(/var/run/dovecot/user-not-found/user/box) failed: Permission denied (euid=1000(user) egid=1000(user) missing +w perm: /var/run/dovecot, euid is not dir owner) Oct 6 18:06:26 host dovecot: imap(testuser): Warning: Subscriptions file /home/testuser/Maildir/subscriptions: Ignoring invalid entry: shared^user^box
Interesting. It tries to use "shared^user/box^" as the namespace prefix instead of "shared^user^box^" as it should. I still don't see why though, and can't reproduce it. Try what it logs with attached patch?
participants (2)
-
Lutz Preßler
-
Timo Sirainen