dovecot-2.2: lib-storage: Don't set mail_save_context->saving=TR...

dovecot at dovecot.org dovecot at dovecot.org
Sun May 20 03:26:35 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/5d9a5011c1bf
changeset: 14533:5d9a5011c1bf
user:      Timo Sirainen <tss at iki.fi>
date:      Fri May 04 19:00:04 2012 +0300
description:
lib-storage: Don't set mail_save_context->saving=TRUE when copying via save.

diffstat:

 src/lib-storage/mail-storage.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 5d45870e2e4a -r 5d9a5011c1bf src/lib-storage/mail-storage.c
--- a/src/lib-storage/mail-storage.c	Thu May 03 23:26:44 2012 +0300
+++ b/src/lib-storage/mail-storage.c	Fri May 04 19:00:04 2012 +0300
@@ -1630,7 +1630,8 @@
 		return -1;
 	}
 
-	(*ctx)->saving = TRUE;
+	if (!(*ctx)->copying_via_save)
+		(*ctx)->saving = TRUE;
 	if (box->v.save_begin == NULL) {
 		mail_storage_set_error(box->storage, MAIL_ERROR_NOTPOSSIBLE,
 				       "Saving messages not supported");


More information about the dovecot-cvs mailing list