changeset 121:f9522c8629b8 HEAD

APPEND always saved mails to INBOX with maildir.
author Timo Sirainen <tss@iki.fi>
date Mon, 02 Sep 2002 22:37:35 +0300
parents 82f566bc9d85
children 9b87ee7cc19f
files src/lib-storage/index/maildir/maildir-save.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/index/maildir/maildir-save.c	Mon Sep 02 22:14:17 2002 +0300
+++ b/src/lib-storage/index/maildir/maildir-save.c	Mon Sep 02 22:37:35 2002 +0300
@@ -76,7 +76,7 @@
 	t_push();
 
 	/* create the file into tmp/ directory */
-	tmpdir = t_strconcat(box->storage->dir, "/tmp", NULL);
+	tmpdir = t_strconcat(ibox->index->dir, "/tmp", NULL);
 	fname = maildir_read_into_tmp(box->storage, tmpdir, data, data_size);
 	if (fname == NULL) {
 		t_pop();
@@ -85,7 +85,7 @@
 	tmp_path = t_strconcat(tmpdir, "/", fname, NULL);
 
 	fname = maildir_filename_set_flags(fname, flags);
-	new_path = t_strconcat(box->storage->dir, "/new/", fname, NULL);
+	new_path = t_strconcat(ibox->index->dir, "/new/", fname, NULL);
 
 	/* set the internal_date by modifying mtime */
 	buf.actime = ioloop_time;