[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-list.c, 1.32, 1.33

cras at dovecot.org cras at dovecot.org
Sat Sep 11 13:45:47 EEST 2004


Update of /var/lib/cvs/dovecot/src/lib-storage/index/maildir
In directory talvi:/tmp/cvs-serv6839/lib-storage/index/maildir

Modified Files:
	maildir-list.c 
Log Message:
INBOX fixes for maildir too



Index: maildir-list.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/maildir/maildir-list.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- maildir-list.c	22 Jul 2004 21:20:01 -0000	1.32
+++ maildir-list.c	11 Sep 2004 10:45:45 -0000	1.33
@@ -181,6 +181,15 @@
 		return FALSE;
 	}
 
+	if ((ctx->flags & (MAILBOX_LIST_SUBSCRIBED |
+			   MAILBOX_LIST_INBOX)) == MAILBOX_LIST_INBOX) {
+		/* make sure INBOX is there */
+		node = mailbox_tree_get(ctx->tree_ctx, "INBOX", &created);
+		if (created)
+			node->flags = MAILBOX_NOCHILDREN;
+		else
+			node->flags &= ~MAILBOX_PLACEHOLDER;
+	}
 	maildir_nodes_fix(mailbox_tree_get(ctx->tree_ctx, NULL, NULL),
 			  (ctx->flags & MAILBOX_LIST_SUBSCRIBED) != 0);
 	return TRUE;



More information about the dovecot-cvs mailing list