dovecot-1.2: Don't try to create files to Maildir/tmp/ if INBOX ...

dovecot at dovecot.org dovecot at dovecot.org
Thu Mar 26 01:43:44 EET 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/39f1644ed150
changeset: 8868:39f1644ed150
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Mar 25 19:43:39 2009 -0400
description:
Don't try to create files to Maildir/tmp/ if INBOX doesn't exist in Maildir/.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-storage/index/maildir/maildir-storage.c |    2 +-

diffs (12 lines):

diff -r 44f7b2f4a767 -r 39f1644ed150 src/lib-storage/index/maildir/maildir-storage.c
--- a/src/lib-storage/index/maildir/maildir-storage.c	Wed Mar 25 19:43:06 2009 -0400
+++ b/src/lib-storage/index/maildir/maildir-storage.c	Wed Mar 25 19:43:39 2009 -0400
@@ -258,7 +258,7 @@ maildir_create(struct mail_storage *_sto
 	storage->stat_dirs = getenv("MAILDIR_STAT_DIRS") != NULL;
 
 	storage->temp_prefix = mailbox_list_get_temp_prefix(list);
-	if (list_set.control_dir == NULL &&
+	if (list_set.control_dir == NULL && list_set.inbox_path == NULL &&
 	    (_storage->ns->flags & NAMESPACE_FLAG_INBOX) != 0) {
 		/* put the temp files into tmp/ directory preferrably */
 		storage->temp_prefix = p_strconcat(_storage->pool, "tmp/",


More information about the dovecot-cvs mailing list