From: Timo Sirainen Date: Sun, 27 Jul 2003 04:35:44 +0000 (+0300) Subject: \Nochildren got lost again.. X-Git-Tag: 1.1.alpha1~4453 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26be5296d793dcc61a3916e6ce4b67f110cd8fd6;p=thirdparty%2Fdovecot%2Fcore.git \Nochildren got lost again.. --HG-- branch : HEAD --- diff --git a/src/lib-storage/index/maildir/maildir-list.c b/src/lib-storage/index/maildir/maildir-list.c index 901617e7ba..da90d07923 100644 --- a/src/lib-storage/index/maildir/maildir-list.c +++ b/src/lib-storage/index/maildir/maildir-list.c @@ -153,12 +153,15 @@ static int maildir_fill_readdir(struct mailbox_list_context *ctx, t_pop(); } else { + created = FALSE; node = update_only ? mailbox_tree_update(ctx->tree_ctx, mailbox_c) : mailbox_tree_get(ctx->tree_ctx, - mailbox_c, NULL); + mailbox_c, &created); if (node != NULL) { + if (created) + node->flags = MAILBOX_NOCHILDREN; node->flags &= ~(MAILBOX_PLACEHOLDER | MAILBOX_NONEXISTENT); node->flags |= MAILBOX_FLAG_MATCHED;