changeset 19313:56d08de919a1

imapc: Set storage's error to "internal error" if we detect mailbox state corruption. This fixes "unknown internal error" in at least syncing code when an expunged message reappears.
author Timo Sirainen <tss@iki.fi>
date Mon, 19 Oct 2015 14:29:10 +0300
parents c5c34c02fda3
children 5bba7529d5d7
files src/lib-storage/index/imapc/imapc-mailbox.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/index/imapc/imapc-mailbox.c	Mon Oct 19 14:05:26 2015 +0300
+++ b/src/lib-storage/index/imapc/imapc-mailbox.c	Mon Oct 19 14:29:10 2015 +0300
@@ -24,6 +24,8 @@
 		mbox->box.name, t_strdup_vprintf(reason, va));
 	va_end(va);
 
+	mail_storage_set_internal_error(&mbox->storage->storage);
+
 	if (!mbox->initial_sync_done) {
 		/* we failed during initial sync. need to rebuild indexes if
 		   we want to get this fixed */