dovecot-2.0: lib-storage: Fixed listing INBOX's children with la...

dovecot at dovecot.org dovecot at dovecot.org
Thu Dec 8 11:41:10 EET 2011


details:   http://hg.dovecot.org/dovecot-2.0/rev/56618c35292a
changeset: 12995:56618c35292a
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Dec 08 11:41:01 2011 +0200
description:
lib-storage: Fixed listing INBOX's children with layout=fs and non-mbox format.

diffstat:

 src/lib-storage/list/mailbox-list-fs-iter.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r ba68f9be07c4 -r 56618c35292a src/lib-storage/list/mailbox-list-fs-iter.c
--- a/src/lib-storage/list/mailbox-list-fs-iter.c	Thu Dec 08 07:36:39 2011 +0200
+++ b/src/lib-storage/list/mailbox-list-fs-iter.c	Thu Dec 08 11:41:01 2011 +0200
@@ -398,7 +398,8 @@
 	ctx->info.flags &= ~(MAILBOX_NOSELECT | MAILBOX_NONEXISTENT);
 
 	if (*ns->prefix != '\0' &&
-	    (ns->flags & NAMESPACE_FLAG_INBOX_USER) != 0) {
+	    (ns->flags & NAMESPACE_FLAG_INBOX_USER) != 0 &&
+	    (ctx->ctx.list->flags & MAILBOX_LIST_FLAG_MAILBOX_FILES) != 0) {
 		/* we're listing INBOX for a namespace with a prefix.
 		   if there are children for the INBOX, they're returned under
 		   the mailbox prefix, not under the INBOX itself. */


More information about the dovecot-cvs mailing list