dovecot-2.2: imapc: Return correct mailbox list flags for the im...

dovecot at dovecot.org dovecot at dovecot.org
Sat Jun 1 03:48:14 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/9e50919d7e8b
changeset: 16442:9e50919d7e8b
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Jun 01 03:48:07 2013 +0300
description:
imapc: Return correct mailbox list flags for the imapc prefix mailbox itself.

diffstat:

 src/lib-storage/index/imapc/imapc-list.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (17 lines):

diff -r 92b4183ede17 -r 9e50919d7e8b src/lib-storage/index/imapc/imapc-list.c
--- a/src/lib-storage/index/imapc/imapc-list.c	Sat Jun 01 03:37:21 2013 +0300
+++ b/src/lib-storage/index/imapc/imapc-list.c	Sat Jun 01 03:48:07 2013 +0300
@@ -370,8 +370,11 @@
 	if (*list->storage->set->imapc_list_prefix == '\0')
 		pattern = "*";
 	else {
-		pattern = t_strdup_printf("%s%c*",
-			list->storage->set->imapc_list_prefix, list->sep);
+		/* list "prefix*" instead of "prefix.*". this may return a bit
+		   more than we want, but we're also interested in the flags
+		   of the prefix itself. */
+		pattern = t_strdup_printf("%s*",
+			list->storage->set->imapc_list_prefix);
 	}
 
 	cmd = imapc_list_simple_context_init(&ctx, list);


More information about the dovecot-cvs mailing list