[dovecot-cvs] dovecot/src/lib-storage mailbox-tree.c,1.5,1.6

tss at dovecot.org tss at dovecot.org
Wed Apr 11 22:27:01 EEST 2007


Update of /var/lib/cvs/dovecot/src/lib-storage
In directory talvi:/tmp/cvs-serv4050

Modified Files:
	mailbox-tree.c 
Log Message:
Keep children/nochildren flags updated.



Index: mailbox-tree.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/mailbox-tree.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- mailbox-tree.c	11 Apr 2007 19:07:15 -0000	1.5
+++ mailbox-tree.c	11 Apr 2007 19:26:59 -0000	1.6
@@ -93,8 +93,7 @@
 			(*node)->name = p_strdup(tree->pool, name);
 
 			if (*path != '\0') {
-				(*node)->flags = MAILBOX_NONEXISTENT |
-					MAILBOX_CHILDREN;
+				(*node)->flags = MAILBOX_NONEXISTENT;
 			} else {
 				if (created != NULL)
 					*created = TRUE;
@@ -104,6 +103,8 @@
 		if (*path == '\0')
 			break;
 
+		(*node)->flags |= MAILBOX_CHILDREN;
+		(*node)->flags &= ~(MAILBOX_NOCHILDREN | MAILBOX_NOINFERIORS);
 		name = path+1;
 		node = &(*node)->children;
 	}



More information about the dovecot-cvs mailing list