From: Aki Tuomi Date: Wed, 25 Oct 2023 11:18:25 +0000 (+0300) Subject: lib-storage: mdbox - Skip GUID mismatches X-Git-Tag: 2.4.0~2460 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=274ed87e376c79cc20426c30392baa7c8d9efd43;p=thirdparty%2Fdovecot%2Fcore.git lib-storage: mdbox - Skip GUID mismatches Old behaviour would not fix the box, so lets log an error and ignore the expunge. --- diff --git a/src/lib-storage/index/dbox-multi/mdbox-sync.c b/src/lib-storage/index/dbox-multi/mdbox-sync.c index 874c843ceb..2cea0af126 100644 --- a/src/lib-storage/index/dbox-multi/mdbox-sync.c +++ b/src/lib-storage/index/dbox-multi/mdbox-sync.c @@ -43,10 +43,11 @@ dbox_sync_verify_expunge_guid(struct mdbox_sync_context *ctx, uint32_t seq, memcmp(data, guid_128, GUID_128_SIZE) == 0) return 1; - mdbox_set_mailbox_corrupted(&ctx->mbox->box, t_strdup_printf( + e_error(ctx->mbox->box.event, "Expunged GUID mismatch for UID %u: %s vs %s", - uid, guid_128_to_string(data), guid_128_to_string(guid_128))); - return -1; + uid, guid_128_to_string(data), guid_128_to_string(guid_128)); + /* ignore the expunge request */ + return 0; } static int mdbox_sync_expunge(struct mdbox_sync_context *ctx, uint32_t seq,