]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-index: mail_cache_get_missing_reason() - Add "Mail is already expunged" as reason
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 1 Apr 2020 13:42:35 +0000 (16:42 +0300)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 15 Apr 2020 09:41:43 +0000 (12:41 +0300)
src/lib-index/mail-cache-lookup.c

index 1346c27dc6204f8e2b6fe8508adf8fb129d873b7..c83b2bd9b9bae3a65276a733dd7a596ca31c29e2 100644 (file)
@@ -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";