dovecot-2.2: imap: URLFETCH sometimes failed thinking it didn't ...

dovecot at dovecot.org dovecot at dovecot.org
Mon May 6 20:21:38 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/0a97502855df
changeset: 16341:0a97502855df
user:      Timo Sirainen <tss at iki.fi>
date:      Mon May 06 20:21:27 2013 +0300
description:
imap: URLFETCH sometimes failed thinking it didn't receive all of the message data.

diffstat:

 src/imap/cmd-urlfetch.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r bed8c39349fa -r 0a97502855df src/imap/cmd-urlfetch.c
--- a/src/imap/cmd-urlfetch.c	Mon May 06 20:20:43 2013 +0300
+++ b/src/imap/cmd-urlfetch.c	Mon May 06 20:21:27 2013 +0300
@@ -116,7 +116,7 @@
 		client_disconnect(client, "URLFETCH failed");
 		return -1;
 	}
-	if (!ctx->input->eof) {
+	if (i_stream_have_bytes_left(ctx->input)) {
 		o_stream_set_flush_pending(client->output, TRUE);
 		return 0;
 	}


More information about the dovecot-cvs mailing list