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

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


details:   http://hg.dovecot.org/dovecot-2.1/rev/9336f4968beb
changeset: 13828:9336f4968beb
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 94e32772e593 -r 9336f4968beb src/lib-storage/list/mailbox-list-fs-iter.c
--- a/src/lib-storage/list/mailbox-list-fs-iter.c	Thu Dec 08 11:30:42 2011 +0200
+++ b/src/lib-storage/list/mailbox-list-fs-iter.c	Thu Dec 08 11:41:01 2011 +0200
@@ -349,7 +349,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