[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-list.c, 1.41.2.1, 1.41.2.2

cras at dovecot.org cras at dovecot.org
Wed Jun 28 00:13:46 EEST 2006


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

Modified Files:
      Tag: branch_1_0
	maildir-list.c 
Log Message:
We could have skipped INBOX if there wasn't .INBOX directory.



Index: maildir-list.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/maildir/maildir-list.c,v
retrieving revision 1.41.2.1
retrieving revision 1.41.2.2
diff -u -d -r1.41.2.1 -r1.41.2.2
--- maildir-list.c	11 Jun 2006 11:19:37 -0000	1.41.2.1
+++ maildir-list.c	27 Jun 2006 21:13:44 -0000	1.41.2.2
@@ -193,6 +193,15 @@
 			node->flags = MAILBOX_NOCHILDREN;
 		else
 			node->flags &= ~MAILBOX_PLACEHOLDER;
+
+		switch (imap_match(glob, "INBOX")) {
+		case IMAP_MATCH_YES:
+		case IMAP_MATCH_PARENT:
+			node->flags |= MAILBOX_FLAG_MATCHED;
+			break;
+		default:
+			break;
+		}
 	}
 	maildir_nodes_fix(mailbox_tree_get(ctx->tree_ctx, NULL, NULL),
 			  (ctx->mailbox_ctx.flags &



More information about the dovecot-cvs mailing list