]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
\Nochildren got lost again..
authorTimo Sirainen <tss@iki.fi>
Sun, 27 Jul 2003 04:35:44 +0000 (07:35 +0300)
committerTimo Sirainen <tss@iki.fi>
Sun, 27 Jul 2003 04:35:44 +0000 (07:35 +0300)
--HG--
branch : HEAD

src/lib-storage/index/maildir/maildir-list.c

index 901617e7ba216c3c6d4be94694c6b4eac5d4a742..da90d079231feab7513396655be4e419e371649f 100644 (file)
@@ -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;