[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-list.c,
1.42, 1.43
cras at dovecot.org
cras at dovecot.org
Wed Jun 28 00:13:49 EEST 2006
Update of /var/lib/cvs/dovecot/src/lib-storage/index/maildir
In directory talvi:/tmp/cvs-serv1231/lib-storage/index/maildir
Modified Files:
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.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- maildir-list.c 16 Jun 2006 09:26:06 -0000 1.42
+++ maildir-list.c 27 Jun 2006 21:13:45 -0000 1.43
@@ -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