Alexander 'Leo' Bergolth
2009-Nov-23 16:03 UTC
[Dovecot] shared mailboxes using namespaces in 1.2
Hi! I've been using shared mailbox trees using maildir, unix permissions and separate namespaces per shared tree since dovecot 1.0. However now that I've upgraded to 1.2.8, I cannot create subfolders anymore. The server responds with "NO Invalid mailbox name: test/testsub". The hierarchy separator for the namespaces is / because I am mixing maildir and mbox namespaces and list=yes. The details: I am using a post-login script (attached) that detects all subfolders of /var/spool/mail/Shared for which the current user has at least read access. For every subfolder, it creates a separate namespace with the prefix Shared/<mailboxname>. The shared mailbox trees are in maildir format. If one of those namespace-prefixes is e.g. "Shared/sharedmailbox/", I am able to create "Shared/sharedmailbox/test" but trying to create "Shared/sharedmailbox/test/testsub" will fail with the above error. If I set the herarchy separator to '.' even creating "Shared/sharedmailbox/test" will fail. Any hints? Thanks, --leo -- e-mail ::: Leo.Bergolth (at) wu.ac.at fax ::: +43-1-31336-906050 location ::: IT-Services | Vienna University of Economics | Austria -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: dovecot.conf URL: <http://dovecot.org/pipermail/dovecot/attachments/20091123/789957c3/attachment-0002.pl>
On Mon, 2009-11-23 at 17:03 +0100, Alexander 'Leo' Bergolth wrote:> However now that I've upgraded to 1.2.8, I cannot create subfolders > anymore. The server responds with "NO Invalid mailbox name: > test/testsub". The hierarchy separator for the namespaces is / because I > am mixing maildir and mbox namespaces and list=yes. > > The details: > I am using a post-login script (attached) that detects all subfolders of > /var/spool/mail/Shared for which the current user has at least read > access. For every subfolder, it creates a separate namespace with the > prefix Shared/<mailboxname>. The shared mailbox trees are in maildir format.Are you setting the hierarchy separator in environment for the other created namespaces? It sounds like you aren't. Looking at logs with mail_debug=yes would verify. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20091123/48f40355/attachment-0002.bin>
Alexander 'Leo' Bergolth
2009-Nov-23 18:19 UTC
[Dovecot] shared mailboxes using namespaces in 1.2
On 11/23/2009 06:28 PM, Timo Sirainen wrote:> On Mon, 2009-11-23 at 17:03 +0100, Alexander 'Leo' Bergolth wrote: >> However now that I've upgraded to 1.2.8, I cannot create subfolders >> anymore. The server responds with "NO Invalid mailbox name: >> test/testsub". The hierarchy separator for the namespaces is / because I >> am mixing maildir and mbox namespaces and list=yes. >> >> The details: >> I am using a post-login script (attached) that detects all subfolders of >> /var/spool/mail/Shared for which the current user has at least read >> access. For every subfolder, it creates a separate namespace with the >> prefix Shared/<mailboxname>. The shared mailbox trees are in maildir format. > > Are you setting the hierarchy separator in environment for the other > created namespaces? It sounds like you aren't. Looking at logs with > mail_debug=yes would verify.Yes, I am. I am using $ENV{"NAMESPACE_${nr}_SEP"}= "/"; ... in the post-login script. The debug log says: -------------------- 8< -------------------- Nov 23 19:10:15 strike dovecot: IMAP(leo): Namespace: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes Nov 23 19:10:15 strike dovecot: IMAP(leo): mbox: data=~/mail:INBOX=/var/mail/leo Nov 23 19:10:15 strike dovecot: IMAP(leo): fs: root=/home/leo/mail, index=, control=, inbox=/var/mail/leo Nov 23 19:10:15 strike dovecot: IMAP(leo): Namespace: type=shared, prefix=Shared/spamrep/, sep=/, inbox=no, hidden=no, list=yes, subscriptions=no Nov 23 19:10:15 strike dovecot: IMAP(leo): maildir: data=/var/spool/mail/Shared/spamrep:CONTROL=~/Maildir/control/Shared/spamrep:INDEX=~/Maildir/index/Share d/spamrep Nov 23 19:10:15 strike dovecot: IMAP(leo): maildir++: root=/var/spool/mail/Shared/spamrep, index=/home/leo/Maildir/index/Shared/spamrep, control=/home/leo/Maildir/control/Shared/spamrep, inbox-------------------- 8< -------------------- Trying to create Shared/spamrep/test/testsub fails for example... Cheers, --leo -- e-mail ::: Leo.Bergolth (at) wu.ac.at fax ::: +43-1-31336-906050 location ::: IT-Services | Vienna University of Economics | Austria