changeset 5799:75e3aedc0568 HEAD

Put UW-IMAP emulation back after all
author Timo Sirainen <tss@iki.fi>
date Mon, 25 Jun 2007 18:35:17 +0300
parents 0d409ce8daae
children c192277a81b3
files src/imap/cmd-list.c
diffstat 1 files changed, 5 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/imap/cmd-list.c	Mon Jun 25 18:26:36 2007 +0300
+++ b/src/imap/cmd-list.c	Mon Jun 25 18:35:17 2007 +0300
@@ -455,12 +455,11 @@
 		/* non-hidden namespace, use it as the root name */
 		imap_quote_append_string(str, ns_prefix, FALSE);
 	} else {
-		/* Hidden namespace or empty namespace prefix. Pine with
-		   ~/mail/
-
-		   use the mailbox
-		   name's first part as the root. */
-		const char *p = /*strchr(ref, ns->sep)*/NULL;
+		/* Hidden namespace or empty namespace prefix. We could just
+		   return an empty root name, but it's safer to emulate what
+		   UW-IMAP does. With full filesystem access this might even
+		   matter (root of "~user/mail/" is "~user/", not "") */
+		const char *p = strchr(ref, ns->sep);
 
 		if (p == NULL)
 			str_append(str, "\"\"");