changeset 7626:96207583aaa0 HEAD

Crashfix for previous view sync change
author Timo Sirainen <tss@iki.fi>
date Sat, 15 Mar 2008 15:23:10 +0200
parents 98a03cf8ad5d
children 4fd41f9467ea
files src/lib-index/mail-index-view-sync.c
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-index-view-sync.c	Sat Mar 15 10:14:12 2008 +0200
+++ b/src/lib-index/mail-index-view-sync.c	Sat Mar 15 15:23:10 2008 +0200
@@ -478,10 +478,7 @@
 	/* Apply transaction to view's mapping if needed (meaning we
 	   didn't just re-map the view to head mapping). */
 	if (ctx->sync_map_update && !synced_to_map) {
-		i_assert((hdr->type & MAIL_TRANSACTION_EXPUNGE) == 0 ||
-			 (hdr->type & MAIL_TRANSACTION_EXTERNAL) == 0);
-
-		T_BEGIN {
+		if ((hdr->type & MAIL_TRANSACTION_EXPUNGE) == 0) T_BEGIN {
 			ret = mail_index_sync_record(&ctx->sync_map_ctx,
 						     hdr, ctx->data);
 		} T_END;