dovecot-2.0: lib-storage: Maildir++ mailbox listing could have g...

dovecot at dovecot.org dovecot at dovecot.org
Tue Nov 2 21:23:43 EET 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/eb72f2523ffa
changeset: 12369:eb72f2523ffa
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Nov 02 19:23:37 2010 +0000
description:
lib-storage: Maildir++ mailbox listing could have given wrong flags to parent mailboxes.

diffstat:

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

diffs (30 lines):

diff -r 055e5206b836 -r eb72f2523ffa src/lib-storage/list/mailbox-list-maildir-iter.c
--- a/src/lib-storage/list/mailbox-list-maildir-iter.c	Tue Nov 02 18:25:53 2010 +0000
+++ b/src/lib-storage/list/mailbox-list-maildir-iter.c	Tue Nov 02 19:23:37 2010 +0000
@@ -42,7 +42,7 @@
 static void
 maildir_fill_parents(struct maildir_list_iterate_context *ctx,
 		     struct imap_match_glob *glob, bool update_only,
-		     string_t *mailbox, enum mailbox_info_flags flags)
+		     string_t *mailbox)
 {
 	struct mail_namespace *ns = ctx->ctx.list->ns;
 	struct mailbox_node *node;
@@ -75,7 +75,7 @@
 			}
 			if (!update_only)
 				node->flags |= MAILBOX_MATCHED;
-			node->flags |= MAILBOX_CHILDREN | flags;
+			node->flags |= MAILBOX_CHILDREN;
 			node->flags &= ~MAILBOX_NOCHILDREN;
 			node_fix_parents(node);
 		}
@@ -338,7 +338,7 @@
 		if ((match & IMAP_MATCH_PARENT) != 0) {
 			T_BEGIN {
 				maildir_fill_parents(ctx, glob, update_only,
-						     mailbox, flags);
+						     mailbox);
 			} T_END;
 		} else {
 			created = FALSE;


More information about the dovecot-cvs mailing list