dovecot-2.1: fs layout: Fixed listing child mailboxes when child...

dovecot at dovecot.org dovecot at dovecot.org
Fri Jan 20 22:13:03 EET 2012


details:   http://hg.dovecot.org/dovecot-2.1/rev/54e74090fb42
changeset: 13976:54e74090fb42
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Jan 20 22:12:48 2012 +0200
description:
fs layout: Fixed listing child mailboxes when children flags weren't requested.

diffstat:

 src/lib-storage/list/mailbox-list-fs-iter.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 958ef86e7f5b -r 54e74090fb42 src/lib-storage/list/mailbox-list-fs-iter.c
--- a/src/lib-storage/list/mailbox-list-fs-iter.c	Fri Jan 20 21:57:30 2012 +0200
+++ b/src/lib-storage/list/mailbox-list-fs-iter.c	Fri Jan 20 22:12:48 2012 +0200
@@ -535,7 +535,7 @@
 		   (child_dir_match & IMAP_MATCH_CHILDREN) == 0) {
 		/* mailbox has children, but we don't want to list them */
 	} else if (((ctx->ctx.flags & MAILBOX_LIST_ITER_RETURN_CHILDREN) != 0 ||
-		    (match & IMAP_MATCH_CHILDREN) != 0) &&
+		    (child_dir_match & IMAP_MATCH_CHILDREN) != 0) &&
 		   *entry->fname != '\0') {
 		/* a) mailbox has children and we want to return them
 		   b) we don't want to return mailbox's children, but we need


More information about the dovecot-cvs mailing list