[1.1.4 with http://hg.dovecot.org/dovecot-1.1/rev/b61424a50786 applied] I'm trying to use namespaces as described here for UW-IMAP compatibility: http://wiki.dovecot.org/Namespaces But I'm getting a problem with the hidden namespaces showing up in the LIST output. Here is a simplified transcript. The ~/Mail folder contains just two folders. The config given to imapd is as follows: MAIL=mbox:/home/cut/jru2/Mail:INBOX=/home/cut/jru2/.mail:INDEX=/var/state/dovecot-indexes/jru2 NAMESPACE_1=mbox:/home/cut/jru2/Mail:INBOX=/home/cut/jru2/.mail:INDEX=/var/state/dovecot-indexes/jru2 NAMESPACE_1_INBOX=1 NAMESPACE_1_LIST=1 NAMESPACE_1_PREFIXNAMESPACE_1_SEP=/ NAMESPACE_1_SUBSCRIPTIONS=1 NAMESPACE_1_TYPE=private NAMESPACE_2=mbox:/home/cut/jru2/Mail:INBOX=/home/cut/jru2/.mail:INDEX=/var/state/dovecot-indexes/jru2 NAMESPACE_2_HIDDEN=1 NAMESPACE_2_LIST=0 NAMESPACE_2_PREFIX=mail/ NAMESPACE_2_SEP=/ NAMESPACE_2_SUBSCRIPTIONS=0 NAMESPACE_2_TYPE=private I would expect the second namespace not to be listed. But it is: in: 2 LIST "" "*" 3 LOGOUT out: * OK [RAWLOG TIMESTAMP] 2008-10-16 15:41:40 * LIST (\NoInferiors \UnMarked) "/" "folder" * LIST (\NoInferiors \UnMarked) "/" "test" * LIST (\NoInferiors \Marked) "/" "INBOX" * LIST (\Noselect \HasChildren) "/" "mail" * LIST (\NoInferiors \UnMarked) "/" "mail/folder" * LIST (\NoInferiors \UnMarked) "/" "mail/test" 2 OK List completed. * BYE Logging out 3 OK Logout completed. That's with hidden turned on, and the list option turned off. Am I missing something with my config? Tim. -- Tim Bishop http://www.bishnet.net/tim/ PGP Key: 0x5AE7D984
On Thu, 2008-10-16 at 15:51 +0100, Tim Bishop wrote:> The ~/Mail folder contains just two folders. The config given to imapd > is as follows: > > MAIL=mbox:/home/cut/jru2/Mail:INBOX=/home/cut/jru2/.mail:INDEX=/var/state/dovecot-indexes/jru2 > NAMESPACE_1=mbox:/home/cut/jru2/Mail:INBOX=/home/cut/jru2/.mail:INDEX=/var/state/dovecot-indexes/jru2 > NAMESPACE_1_INBOX=1.. Why do you set the environment manually? "dovecot --exec-mail imap" isn't enough?> NAMESPACE_2_LIST=0 > NAMESPACE_2_SUBSCRIPTIONS=0These don't do what you think they do. Boolean settings are true as long as the environment exists, Dovecot doesn't even look at its value. -------------- 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/20081016/3ff96d4c/attachment-0002.bin>
On Thu, Oct 16, 2008 at 06:03:41PM +0300, Timo Sirainen wrote:> On Thu, 2008-10-16 at 15:51 +0100, Tim Bishop wrote: > > The ~/Mail folder contains just two folders. The config given to imapd > > is as follows: > > > > MAIL=mbox:/home/cut/jru2/Mail:INBOX=/home/cut/jru2/.mail:INDEX=/var/state/dovecot-indexes/jru2 > > NAMESPACE_1=mbox:/home/cut/jru2/Mail:INBOX=/home/cut/jru2/.mail:INDEX=/var/state/dovecot-indexes/jru2 > > NAMESPACE_1_INBOX=1 > .. > > Why do you set the environment manually? "dovecot --exec-mail imap" > isn't enough?I'm using the post-login scripting approach to detect location of mbox directories and whether the user has maildir instead.> > NAMESPACE_2_LIST=0 > > NAMESPACE_2_SUBSCRIPTIONS=0 > > These don't do what you think they do. Boolean settings are true as long > as the environment exists, Dovecot doesn't even look at its value.Ah! Thanks for the tip :-) Tim. -- Tim Bishop http://www.bishnet.net/tim/ PGP Key: 0x5AE7D984