]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Don't try to create files to Maildir/tmp/ if INBOX doesn't exist in Maildir/.
authorTimo Sirainen <tss@iki.fi>
Wed, 25 Mar 2009 23:43:39 +0000 (19:43 -0400)
committerTimo Sirainen <tss@iki.fi>
Wed, 25 Mar 2009 23:43:39 +0000 (19:43 -0400)
--HG--
branch : HEAD

src/lib-storage/index/maildir/maildir-storage.c

index 5cb1ff3dbe9364a9e115f972887214c6b7e9629e..23037c77b6343bde6f87d663d77da1ef42a8570a 100644 (file)
@@ -258,7 +258,7 @@ maildir_create(struct mail_storage *_storage, const char *data,
        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/",