From: Timo Sirainen Date: Sun, 12 Feb 2012 00:53:50 +0000 (+0200) Subject: doveadm: Use MAILBOX_LIST_ITER_LIST_PREFIXES when iterating through mailboxes. X-Git-Tag: 2.1.rc6~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2db692ad9c05e6043cefa9f920fd85a092d9bc2c;p=thirdparty%2Fdovecot%2Fcore.git doveadm: Use MAILBOX_LIST_ITER_LIST_PREFIXES when iterating through mailboxes. 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. --- diff --git a/src/doveadm/doveadm-mail-list-iter.c b/src/doveadm/doveadm-mail-list-iter.c index 861584a013..f62a43f0ca 100644 --- a/src/doveadm/doveadm-mail-list-iter.c +++ b/src/doveadm/doveadm-mail-list-iter.c @@ -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;