dovecot-1.0: LIST "" % with INBOX. namespace returned INBOX with...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Jun 25 16:25:25 EEST 2007
details: http://hg.dovecot.org/dovecot-1.0/rev/f92ea3eed616
changeset: 5325:f92ea3eed616
user: Timo Sirainen <tss at iki.fi>
date: Mon Jun 25 16:25:21 2007 +0300
description:
LIST "" % with INBOX. namespace returned INBOX with \HasNoChildren.
diffstat:
1 file changed, 9 insertions(+)
src/imap/cmd-list.c | 9 +++++++++
diffs (19 lines):
diff -r b55165d5e675 -r f92ea3eed616 src/imap/cmd-list.c
--- a/src/imap/cmd-list.c Wed Jun 20 23:58:48 2007 +0300
+++ b/src/imap/cmd-list.c Mon Jun 25 16:25:21 2007 +0300
@@ -135,6 +135,15 @@ list_namespace_mailboxes(struct client *
continue;
str_append(name_str, ctx->ns->prefix);
}
+ if ((list->flags & MAILBOX_NOCHILDREN) != 0 &&
+ strncmp(ctx->ns->prefix, "INBOX", 5) == 0 &&
+ ctx->ns->prefix[5] == ctx->ns->sep) {
+ /* FIXME: It's unlikely there's only a single
+ INBOX mailbox, but it's possible. We should
+ check that instead of assuming it. */
+ list->flags |= MAILBOX_CHILDREN;
+ list->flags &= ~MAILBOX_NOCHILDREN;
+ }
} else {
str_append(name_str, ctx->ns->prefix);
}
More information about the dovecot-cvs
mailing list