]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm: Use MAILBOX_LIST_ITER_LIST_PREFIXES when iterating through mailboxes.
authorTimo Sirainen <tss@iki.fi>
Sun, 12 Feb 2012 00:53:50 +0000 (02:53 +0200)
committerTimo Sirainen <tss@iki.fi>
Sun, 12 Feb 2012 00:53:50 +0000 (02:53 +0200)
This means that if there exists a mailbox in namespace prefix itself, those
mailboxes can be accessed. Also "doveadm mailbox list" shows all namespace
prefixes.

Note that wildcards match only within namespace, so e.g. '*' will never
match any namespace prefix, because it works within the prefix="" namespace.

src/doveadm/doveadm-mail-list-iter.c

index 861584a013be5df9cf4616b95fb9ec3875424c3c..f62a43f0ca8570b7f168adf49810db06c9d2241c 100644 (file)
@@ -66,6 +66,8 @@ doveadm_mail_list_iter_init_nsmask(struct mail_user *user,
        ARRAY_TYPE(const_string) patterns;
        bool have_guid = FALSE;
 
+       iter_flags |= MAILBOX_LIST_ITER_LIST_PREFIXES;
+
        iter = i_new(struct doveadm_mail_list_iter, 1);
        iter->search_args = search_args;