dovecot-1.1: Error message improvements.

dovecot at dovecot.org dovecot at dovecot.org
Sun May 4 21:55:44 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/6dfa085a49d6
changeset: 7487:6dfa085a49d6
user:      Timo Sirainen <tss at iki.fi>
date:      Sun May 04 21:54:03 2008 +0300
description:
Error message improvements.

diffstat:

2 files changed, 4 insertions(+), 3 deletions(-)
src/lib-storage/index/mbox/istream-raw-mbox.c |    2 +-
src/lib-storage/index/mbox/mbox-mail.c        |    5 +++--

diffs (27 lines):

diff -r 9edaf878bb96 -r 6dfa085a49d6 src/lib-storage/index/mbox/istream-raw-mbox.c
--- a/src/lib-storage/index/mbox/istream-raw-mbox.c	Sun May 04 20:42:51 2008 +0300
+++ b/src/lib-storage/index/mbox/istream-raw-mbox.c	Sun May 04 21:54:03 2008 +0300
@@ -298,7 +298,7 @@ static ssize_t i_stream_raw_mbox_read(st
 	    rstream->hdr_offset + new_pos > rstream->mail_size) {
 		/* istream_raw_mbox_set_next_offset() used invalid
 		   cached next_offset? */
-		i_error("Unexpectedly lost From-line at %"PRIuUOFF_T,
+		i_error("Next message unexpectedly lost from %"PRIuUOFF_T,
 			rstream->hdr_offset + rstream->mail_size);
 		rstream->eof = TRUE;
 		rstream->corrupted = TRUE;
diff -r 9edaf878bb96 -r 6dfa085a49d6 src/lib-storage/index/mbox/mbox-mail.c
--- a/src/lib-storage/index/mbox/mbox-mail.c	Sun May 04 20:42:51 2008 +0300
+++ b/src/lib-storage/index/mbox/mbox-mail.c	Sun May 04 21:54:03 2008 +0300
@@ -248,8 +248,9 @@ static int mbox_mail_init_stream(struct 
 		if (mbox_mail_seek(mail) < 0)
 			return -1;
 		if (!mbox_mail_get_next_offset(mail, &next_offset)) {
-			i_warning("mbox %s: Can't find next message offset",
-				  mbox->path);
+			i_warning("mbox %s: Can't find next message offset "
+				  "for uid=%u",
+				  mbox->path, mail->mail.mail.uid);
 			next_offset = (uoff_t)-1;
 		}
 	}


More information about the dovecot-cvs mailing list