dovecot: Put UW-IMAP emulation back after all
dovecot at dovecot.org
dovecot at dovecot.org
Tue Jun 26 15:44:28 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/75e3aedc0568
changeset: 5799:75e3aedc0568
user: Timo Sirainen <tss at iki.fi>
date: Mon Jun 25 18:35:17 2007 +0300
description:
Put UW-IMAP emulation back after all
diffstat:
1 file changed, 5 insertions(+), 6 deletions(-)
src/imap/cmd-list.c | 11 +++++------
diffs (21 lines):
diff -r 0d409ce8daae -r 75e3aedc0568 src/imap/cmd-list.c
--- 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 @@ static void cmd_list_ref_root(struct cli
/* 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, "\"\"");
More information about the dovecot-cvs
mailing list