On 21.3.2005, at 14:09, Chris Wakelin wrote:
Having said that, Pine is still getting confused. This time it's trying 'LIST "" ~/mail' and getting no results whereas UW-IMAP gives '* LIST (\NoSelect) "/" ~/mail'.
How about if LIST "~/mail/" "" returned ~/mail/ even if the namespace is hidden? diff -u -r1.45 cmd-list.c --- cmd-list.c 18 Mar 2005 19:45:59 -0000 1.45 +++ cmd-list.c 21 Mar 2005 12:36:45 -0000 @@ -382,14 +382,13 @@ str_printfa(str, "* LIST (\\Noselect) \"%s\" ", ns->sep_str); - if (*ns->prefix != '\0' && !ns->hidden) { - /* public namespace, use it as the root name */ + if (*ns->prefix != '\0') { + /* use namespace as the root name */ imap_quote_append_string(str, ns->prefix, FALSE); } else { - /* private namespace, or empty namespace - prefix. use the mailbox name's first part - as the root. */ + /* empty namespace prefix. use the mailbox + name's first part as the root. */ const char *p = strchr(ref, ns->sep); if (p == NULL)