dovecot-2.1: doveadm: Use MAILBOX_LIST_ITER_LIST_PREFIXES when i...
dovecot at dovecot.org
dovecot at dovecot.org
Sun Feb 12 02:53:57 EET 2012
details: http://hg.dovecot.org/dovecot-2.1/rev/6420d63e7570
changeset: 14113:6420d63e7570
user: Timo Sirainen <tss at iki.fi>
date: Sun Feb 12 02:53:50 2012 +0200
description:
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.
diffstat:
src/doveadm/doveadm-mail-list-iter.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r f5353573d3a0 -r 6420d63e7570 src/doveadm/doveadm-mail-list-iter.c
--- a/src/doveadm/doveadm-mail-list-iter.c Sun Feb 12 02:50:49 2012 +0200
+++ b/src/doveadm/doveadm-mail-list-iter.c Sun Feb 12 02:53:50 2012 +0200
@@ -66,6 +66,8 @@
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;
More information about the dovecot-cvs
mailing list