[Dovecot] Pine and prefix - LIST command bug?
Timo Sirainen
tss at iki.fi
Mon Mar 21 14:38:19 EET 2005
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://dovecot.org/pipermail/dovecot/attachments/20050321/43c951d5/attachment-0001.bin>
More information about the dovecot
mailing list