dovecot-2.2: fts: If reading mail fails, log an error.

dovecot at dovecot.org dovecot at dovecot.org
Wed Jun 3 18:53:05 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/9e7d1e2acd23
changeset: 18820:9e7d1e2acd23
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Jun 03 21:49:52 2015 +0300
description:
fts: If reading mail fails, log an error.

diffstat:

 src/plugins/fts/fts-build-mail.c |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r 06505210b25d -r 9e7d1e2acd23 src/plugins/fts/fts-build-mail.c
--- a/src/plugins/fts/fts-build-mail.c	Wed Jun 03 16:47:25 2015 +0300
+++ b/src/plugins/fts/fts-build-mail.c	Wed Jun 03 21:49:52 2015 +0300
@@ -503,6 +503,11 @@
 		if (ret < 0) {
 			if (input->stream_errno == 0)
 				ret = 0;
+			else {
+				i_error("read(%s) failed: %s",
+					i_stream_get_name(input),
+					i_stream_get_error(input));
+			}
 			break;
 		}
 


More information about the dovecot-cvs mailing list