changeset 5688:5a37076852d4 HEAD

Log an error if a message was expunged unexpectedly.
author Timo Sirainen <tss@iki.fi>
date Mon, 11 Jun 2007 06:28:07 +0300
parents d28185a3131a
children c2362f144f15
files src/lib-storage/index/mbox/mbox-sync.c
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/index/mbox/mbox-sync.c	Mon Jun 11 06:21:46 2007 +0300
+++ b/src/lib-storage/index/mbox/mbox-sync.c	Mon Jun 11 06:28:07 2007 +0300
@@ -955,9 +955,14 @@
 		old_offset = istream_raw_mbox_get_start_offset(sync_ctx->input);
 
 		ret = mbox_file_seek(mbox, sync_ctx->sync_view, seq, &deleted);
-		if (ret < 0)
+		if (ret < 0) {
+			if (deleted) {
+				mbox_sync_set_critical(sync_ctx,
+					"Message was expunged unexpectedly "
+					"in mbox file %s", mbox->path);
+			}
 			return -1;
-
+		}
 		if (ret == 0) {
 			if (istream_raw_mbox_seek(mbox->mbox_stream,
 						  old_offset) < 0) {