dovecot: In non-INBOX namespaces list INBOX if Maildir/cur exists.
dovecot at dovecot.org
dovecot at dovecot.org
Tue Jul 3 18:37:28 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/f0685f6ec951
changeset: 5885:f0685f6ec951
user: Timo Sirainen <tss at iki.fi>
date: Tue Jul 03 18:34:47 2007 +0300
description:
In non-INBOX namespaces list INBOX if Maildir/cur exists.
diffstat:
1 file changed, 10 insertions(+)
src/lib-storage/list/mailbox-list-maildir-iter.c | 10 ++++++++++
diffs (20 lines):
diff -r 1c1dee40e495 -r f0685f6ec951 src/lib-storage/list/mailbox-list-maildir-iter.c
--- a/src/lib-storage/list/mailbox-list-maildir-iter.c Tue Jul 03 05:35:31 2007 +0300
+++ b/src/lib-storage/list/mailbox-list-maildir-iter.c Tue Jul 03 18:34:47 2007 +0300
@@ -181,6 +181,16 @@ maildir_fill_readdir(struct maildir_list
default:
break;
}
+ } else if (mailbox_tree_lookup(ctx->tree_ctx, "INBOX") == NULL &&
+ imap_match(glob, "INBOX")) {
+ /* see if INBOX exists. */
+ ret = ctx->ctx.list->v.
+ iter_is_mailbox(&ctx->ctx, ctx->dir, "",
+ MAILBOX_LIST_FILE_TYPE_UNKNOWN, &flags);
+ if (ret > 0) {
+ node = mailbox_tree_get(ctx->tree_ctx, "INBOX", NULL);
+ node->flags = MAILBOX_NOCHILDREN | MAILBOX_MATCHED;
+ }
}
return 0;
}
More information about the dovecot-cvs
mailing list