From: Timo Sirainen Date: Wed, 21 Jan 2015 00:21:35 +0000 (+0200) Subject: sdbox: Fixed assert-crash when copying mails due to earlier change. X-Git-Tag: 2.2.16.rc1~109 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9fd6f70ed6d4733ae5eabd49822bda280393e403;p=thirdparty%2Fdovecot%2Fcore.git sdbox: Fixed assert-crash when copying mails due to earlier change. --- diff --git a/src/lib-storage/index/dbox-single/sdbox-copy.c b/src/lib-storage/index/dbox-single/sdbox-copy.c index c554e46898..dc8ff5ae35 100644 --- a/src/lib-storage/index/dbox-single/sdbox-copy.c +++ b/src/lib-storage/index/dbox-single/sdbox-copy.c @@ -135,6 +135,7 @@ sdbox_copy_hardlink(struct mail_save_context *_ctx, struct mail *mail) dbox_file_unref(&dest_file); return ret; } + ((struct sdbox_file *)dest_file)->written_to_disk = TRUE; dbox_save_add_to_index(ctx); index_copy_cache_fields(_ctx, mail, ctx->seq);