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

dovecot at dovecot.org dovecot at dovecot.org
Mon Aug 5 17:38:49 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.1/rev/589d2f485a6e
changeset: 14992:589d2f485a6e
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Aug 05 17:38:13 2013 +0300
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 |  13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r b986ac5e1d98 -r 589d2f485a6e src/lib-storage/list/mailbox-list-fs-iter.c
--- a/src/lib-storage/list/mailbox-list-fs-iter.c	Tue Jul 30 13:26:40 2013 +0300
+++ b/src/lib-storage/list/mailbox-list-fs-iter.c	Mon Aug 05 17:38:13 2013 +0300
@@ -680,9 +680,16 @@
 				/* no children */
 			} else if ((ctx->ctx.list->flags &
 				    MAILBOX_LIST_FLAG_MAILBOX_FILES) == 0) {
-				/* skip its children also */
-				ctx->dir = dir;
-				pool_unref(&subdir->pool);
+				if (strcmp(storage_name, "INBOX") == 0) {
+					/* INBOX and its children are in
+					   different paths */
+					ctx->inbox_has_children = TRUE;
+				} else {
+					/* naming conflict, skip its
+					   children also */
+					ctx->dir = dir;
+					pool_unref(&subdir->pool);
+				}
 			} else if ((ctx->info.flags & MAILBOX_NOINFERIORS) == 0) {
 				/* INBOX itself is \NoInferiors, but this INBOX
 				   is a directory, and we can make INBOX have


More information about the dovecot-cvs mailing list