From: Timo Sirainen Date: Wed, 1 Apr 2020 13:42:35 +0000 (+0300) Subject: lib-index: mail_cache_get_missing_reason() - Add "Mail is already expunged" as reason X-Git-Tag: 2.3.11.2~378 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b1f41d2672aa45bbbcd614af8757fa24a5dcbcf;p=thirdparty%2Fdovecot%2Fcore.git lib-index: mail_cache_get_missing_reason() - Add "Mail is already expunged" as reason --- diff --git a/src/lib-index/mail-cache-lookup.c b/src/lib-index/mail-cache-lookup.c index 1346c27dc6..c83b2bd9b9 100644 --- a/src/lib-index/mail-cache-lookup.c +++ b/src/lib-index/mail-cache-lookup.c @@ -656,6 +656,9 @@ mail_cache_get_missing_reason(struct mail_cache_view *view, uint32_t seq) { uint32_t offset, reset_id; + if (mail_index_is_expunged(view->view, seq)) + return "Mail is already expunged"; + if (MAIL_CACHE_IS_UNUSABLE(view->cache)) return "Cache file is unusable";