From 0816e6d0f6f8a81449018754e561df255f52d01d Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Tue, 4 Aug 2020 05:07:19 +0300 Subject: [PATCH] Warn if IMAP deletion is scheduled for message without UID --- src/job.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/job.rs b/src/job.rs index 8213d1e17..ddbaca35b 100644 --- a/src/job.rs +++ b/src/job.rs @@ -570,6 +570,11 @@ impl Job { context, "The message is deleted from the server when all parts are deleted.", ); + } else if cnt == 0 { + warn!( + context, + "The message {} has no UID on the server to delete", &msg.rfc724_mid + ); } else { /* if this is the last existing part of the message, we delete the message from the server */