From 356db185caa5844380274f007084dd197f93094e Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 20 Apr 2009 12:57:32 -0400 Subject: [PATCH] shared mailboxes: LIST shared/% shouldn't list "%" entry. --HG-- branch : HEAD --- src/lib-storage/index/shared/shared-list.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib-storage/index/shared/shared-list.c b/src/lib-storage/index/shared/shared-list.c index b2a2e139f1..ea70e1ef26 100644 --- a/src/lib-storage/index/shared/shared-list.c +++ b/src/lib-storage/index/shared/shared-list.c @@ -140,15 +140,13 @@ shared_list_join_refpattern(struct mailbox_list *list, 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') -- 2.47.3