dovecot-1.2: shared mailboxes: LIST shared/% shouldn't list "%" ...

dovecot at dovecot.org dovecot at dovecot.org
Mon Apr 20 19:57:37 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/6a4cccf11702
changeset: 8970:6a4cccf11702
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Apr 20 12:57:32 2009 -0400
description:
shared mailboxes: LIST shared/% shouldn't list "%" entry.

diffstat:

1 file changed, 1 insertion(+), 3 deletions(-)
src/lib-storage/index/shared/shared-list.c |    4 +---

diffs (20 lines):

diff -r 56732ef5ff96 -r 6a4cccf11702 src/lib-storage/index/shared/shared-list.c
--- a/src/lib-storage/index/shared/shared-list.c	Mon Apr 20 12:35:32 2009 -0400
+++ b/src/lib-storage/index/shared/shared-list.c	Mon Apr 20 12:57:32 2009 -0400
@@ -140,15 +140,13 @@ shared_list_join_refpattern(struct mailb
 
 	if (*ref != '\0' && strncmp(ref, prefix, prefix_len) == 0)
 		ns_ref = ref + prefix_len;
-	else if (*ref == '\0' && strncmp(pattern, prefix, prefix_len) == 0)
-		ns_ref = pattern + prefix_len;
 	else
 		ns_ref = NULL;
 
 	if (ns_ref != NULL &&
 	    shared_storage_get_namespace(list->ns->storage,
 					 &ns_ref, &ns) == 0)
-		return mailbox_list_join_refpattern(ns->list, ref, pattern);
+		return mailbox_list_join_refpattern(ns->list, ns_ref, pattern);
 
 	/* fallback to default behavior */
 	if (*ref != '\0')


More information about the dovecot-cvs mailing list