[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-list.c,1.24,1.25

cras at procontrol.fi cras at procontrol.fi
Sun Jul 27 08:35:47 EEST 2003


Update of /home/cvs/dovecot/src/lib-storage/index/maildir
In directory danu:/tmp/cvs-serv9419/lib-storage/index/maildir

Modified Files:
	maildir-list.c 
Log Message:
\Nochildren got lost again..



Index: maildir-list.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/maildir/maildir-list.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- maildir-list.c	27 Jul 2003 03:12:13 -0000	1.24
+++ maildir-list.c	27 Jul 2003 04:35:44 -0000	1.25
@@ -153,12 +153,15 @@
 
 			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;



More information about the dovecot-cvs mailing list