From 2b1f41d2672aa45bbbcd614af8757fa24a5dcbcf Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 1 Apr 2020 16:42:35 +0300 Subject: [PATCH] lib-index: mail_cache_get_missing_reason() - Add "Mail is already expunged" as reason --- src/lib-index/mail-cache-lookup.c | 3 +++ 1 file changed, 3 insertions(+) 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"; -- 2.47.3