Warn if IMAP deletion is scheduled for message without UID

This commit is contained in:
Alexander Krotov
2020-08-04 05:07:19 +03:00
committed by link2xt
parent c7d72d64cc
commit 0816e6d0f6

View File

@@ -570,6 +570,11 @@ impl Job {
context, context,
"The message is deleted from the server when all parts are deleted.", "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 { } else {
/* if this is the last existing part of the message, /* if this is the last existing part of the message,
we delete the message from the server */ we delete the message from the server */