dovecot-2.1: imapc: Don't list mailboxes that don't match list p...

dovecot at dovecot.org dovecot at dovecot.org
Mon Apr 23 12:58:54 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.1/rev/f24cdf8b0624
changeset: 14461:f24cdf8b0624
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Apr 23 12:58:42 2012 +0300
description:
imapc: Don't list mailboxes that don't match list patterns.

diffstat:

 src/lib-storage/index/imapc/imapc-list.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 4cea936d57f2 -r f24cdf8b0624 src/lib-storage/index/imapc/imapc-list.c
--- a/src/lib-storage/index/imapc/imapc-list.c	Mon Apr 23 12:52:59 2012 +0300
+++ b/src/lib-storage/index/imapc/imapc-list.c	Mon Apr 23 12:58:42 2012 +0300
@@ -471,7 +471,7 @@
 		node = mailbox_tree_iterate_next(ctx->iter, &name);
 		if (node == NULL)
 			return NULL;
-	} while (node == ctx->ns_root);
+	} while (node == ctx->ns_root || (node->flags & MAILBOX_MATCHED) == 0);
 
 	ctx->info.name = name;
 	ctx->info.flags = node->flags;


More information about the dovecot-cvs mailing list