Mercurial > dovecot > original-hg > dovecot-1.2
changeset 8970:6a4cccf11702 HEAD
shared mailboxes: LIST shared/% shouldn't list "%" entry.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 20 Apr 2009 12:57:32 -0400 |
parents | 56732ef5ff96 |
children | 163c3f85a3aa |
files | src/lib-storage/index/shared/shared-list.c |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ 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')