dovecot-2.2: lib-mail: message_search_msg() shouldn't clear istr...

dovecot at dovecot.org dovecot at dovecot.org
Thu Nov 13 07:55:08 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/dc593d4dbeb3
changeset: 18076:dc593d4dbeb3
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Nov 13 09:35:59 2014 +0200
description:
lib-mail: message_search_msg() shouldn't clear istream's stream_errno.
If the input stream failed, retrying the operation without cached
message_parts is unlikely to help. This also loses the original error
message.

diffstat:

 src/lib-mail/message-search.c |  1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diffs (11 lines):

diff -r 8456ebd4fa80 -r dc593d4dbeb3 src/lib-mail/message-search.c
--- a/src/lib-mail/message-search.c	Thu Nov 13 09:12:38 2014 +0200
+++ b/src/lib-mail/message-search.c	Thu Nov 13 09:35:59 2014 +0200
@@ -212,7 +212,6 @@
 	}
 	if (message_parser_deinit(&parser_ctx, &new_parts) < 0) {
 		/* broken parts */
-		input->stream_errno = 0;
 		ret = -1;
 	}
 	return ret;


More information about the dovecot-cvs mailing list