dovecot-2.2: maildir: Fixed auto-creating INBOX that was missing...

dovecot at dovecot.org dovecot at dovecot.org
Thu Apr 3 20:38:30 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/0ca197d2da42
changeset: 17193:0ca197d2da42
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Apr 03 23:38:17 2014 +0300
description:
maildir: Fixed auto-creating INBOX that was missing tmp/ directory (but not cur/)

diffstat:

 src/lib-storage/index/maildir/maildir-storage.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff -r a1c153c70bb9 -r 0ca197d2da42 src/lib-storage/index/maildir/maildir-storage.c
--- a/src/lib-storage/index/maildir/maildir-storage.c	Thu Apr 03 19:59:30 2014 +0300
+++ b/src/lib-storage/index/maildir/maildir-storage.c	Thu Apr 03 23:38:17 2014 +0300
@@ -361,8 +361,8 @@
 	}
 	root_dir = mailbox_list_get_root_forced(box->list,
 						MAILBOX_LIST_PATH_TYPE_MAILBOX);
-	if (strcmp(box_path, root_dir) == 0) {
-		/* root directory. either INBOX or some other namespace root */
+	if (strcmp(box_path, root_dir) == 0 && !box->inbox_any) {
+		/* root directory for some namespace. */
 		errno = ENOENT;
 	} else if (stat(box_path, &st) == 0) {
 		/* yes, we'll need to create the missing dirs */


More information about the dovecot-cvs mailing list