From: Timo Sirainen Date: Mon, 20 Apr 2009 16:57:32 +0000 (-0400) Subject: shared mailboxes: LIST shared/% shouldn't list "%" entry. X-Git-Tag: 2.0.alpha1~911 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=356db185caa5844380274f007084dd197f93094e;p=thirdparty%2Fdovecot%2Fcore.git shared mailboxes: LIST shared/% shouldn't list "%" entry. --HG-- branch : HEAD --- 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')