Mercurial > dovecot > original-hg > dovecot-1.2
changeset 9503:8d4621094e54 HEAD
mbox: Log an error if From_-line gets lost/corrupted unexpectedly.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 09 Dec 2009 20:03:33 -0500 |
parents | 91c6b067f464 |
children | fe1f31b4e21e |
files | src/lib-storage/index/mbox/istream-raw-mbox.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/mbox/istream-raw-mbox.c Wed Dec 09 19:44:35 2009 -0500 +++ b/src/lib-storage/index/mbox/istream-raw-mbox.c Wed Dec 09 20:03:33 2009 -0500 @@ -265,6 +265,11 @@ return i_stream_raw_mbox_read(stream); } if (mbox_read_from_line(rstream) < 0) { + if (stream->istream.v_offset != 0) { + i_error("Next message unexpectedly corrupted in mbox file " + "%s at %"PRIuUOFF_T, rstream->path, + stream->istream.v_offset); + } stream->pos = 0; rstream->eof = TRUE; rstream->corrupted = TRUE;