dovecot-2.2: lib-storage: If mail body reading failed, the error...

dovecot at dovecot.org dovecot at dovecot.org
Fri Jul 4 10:18:29 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/9f482e0fc965
changeset: 17596:9f482e0fc965
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Jul 04 13:16:01 2014 +0300
description:
lib-storage: If mail body reading failed, the error message may have contained only minimal errno string.
Even though the istream could have had a much better internal error message.
So show it.

diffstat:

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

diffs (16 lines):

diff -r b2f3b9f5d7cc -r 9f482e0fc965 src/lib-storage/index/index-mail.c
--- a/src/lib-storage/index/index-mail.c	Fri Jul 04 11:48:27 2014 +0300
+++ b/src/lib-storage/index/index-mail.c	Fri Jul 04 13:16:01 2014 +0300
@@ -898,8 +898,10 @@
 
 	errno = mail->data.stream->stream_errno;
 	mail_storage_set_critical(mail->mail.mail.box->storage,
-		"read(%s) failed: %m (uid=%u)",
-		i_stream_get_name(mail->data.stream), mail->mail.mail.uid);
+		"read(%s) failed: %s (uid=%u)",
+		i_stream_get_name(mail->data.stream),
+		i_stream_get_error(mail->data.stream),
+		mail->mail.mail.uid);
 	return -1;
 }
 


More information about the dovecot-cvs mailing list