]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Allow selecting namespace prefix even when list=no.
authorTimo Sirainen <tss@iki.fi>
Mon, 31 Aug 2009 23:16:12 +0000 (19:16 -0400)
committerTimo Sirainen <tss@iki.fi>
Mon, 31 Aug 2009 23:16:12 +0000 (19:16 -0400)
--HG--
branch : HEAD

src/lib-storage/mailbox-list.c

index 150b8bb07c87d1f7da613c1208bb67d80ac1c04c..8abd0b2820bf0f1cb244e19458d188e6620a920b 100644 (file)
@@ -472,8 +472,7 @@ bool mailbox_list_is_valid_pattern(struct mailbox_list *list,
 bool mailbox_list_is_valid_existing_name(struct mailbox_list *list,
                                         const char *name)
 {
-       if (*name == '\0' && *list->ns->prefix != '\0' &&
-           (list->ns->flags & NAMESPACE_FLAG_LIST_PREFIX) != 0) {
+       if (*name == '\0' && *list->ns->prefix != '\0') {
                /* an ugly way to get to mailbox root (e.g. Maildir/ when
                   it's not the INBOX) */
                return TRUE;