dovecot-1.1: Message copying: Don't save empty mail if input was...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Jul 18 17:55:06 EEST 2008
details: http://hg.dovecot.org/dovecot-1.1/rev/ffbe9f9e0376
changeset: 7758:ffbe9f9e0376
user: Timo Sirainen <tss at iki.fi>
date: Fri Jul 18 17:55:02 2008 +0300
description:
Message copying: Don't save empty mail if input was already read to memory.
diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
src/lib-storage/mail-copy.c | 4 ++--
diffs (16 lines):
diff -r df94d2155e4b -r ffbe9f9e0376 src/lib-storage/mail-copy.c
--- a/src/lib-storage/mail-copy.c Fri Jul 18 16:21:04 2008 +0300
+++ b/src/lib-storage/mail-copy.c Fri Jul 18 17:55:02 2008 +0300
@@ -29,10 +29,10 @@ int mail_storage_copy(struct mailbox_tra
0, from_envelope, input, dest_mail, &ctx) < 0)
return -1;
- while (i_stream_read(input) != -1) {
+ do {
if (mailbox_save_continue(ctx) < 0)
break;
- }
+ } while (i_stream_read(input) != -1);
if (input->stream_errno != 0) {
mail_storage_set_critical(t->box->storage,
More information about the dovecot-cvs
mailing list