]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
shared mailboxes: LIST shared/% shouldn't list "%" entry.
authorTimo Sirainen <tss@iki.fi>
Mon, 20 Apr 2009 16:57:32 +0000 (12:57 -0400)
committerTimo Sirainen <tss@iki.fi>
Mon, 20 Apr 2009 16:57:32 +0000 (12:57 -0400)
--HG--
branch : HEAD

src/lib-storage/index/shared/shared-list.c

index b2a2e139f115b99424ace4a463fd4d73e58b8510..ea70e1ef2674dcd8f11232e0e460e1e1e6c1f73e 100644 (file)
@@ -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')