]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Crashfix for previous view sync change
authorTimo Sirainen <tss@iki.fi>
Sat, 15 Mar 2008 13:23:10 +0000 (15:23 +0200)
committerTimo Sirainen <tss@iki.fi>
Sat, 15 Mar 2008 13:23:10 +0000 (15:23 +0200)
--HG--
branch : HEAD

src/lib-index/mail-index-view-sync.c

index 7709a41fc9dd5abaa008e9890df55539beca0ab4..d4de21d51a7350bec56930043c341c27a8a1de94 100644 (file)
@@ -478,10 +478,7 @@ mail_index_view_sync_get_next_transaction(struct mail_index_view_sync_ctx *ctx)
        /* 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;