Skip to content

Commit 0816e6d

Browse files
Alexander Krotovlink2xt
Alexander Krotov
authored and
link2xt
committed
Warn if IMAP deletion is scheduled for message without UID
1 parent c7d72d6 commit 0816e6d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/job.rs

+5
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,11 @@ impl Job {
570570
context,
571571
"The message is deleted from the server when all parts are deleted.",
572572
);
573+
} else if cnt == 0 {
574+
warn!(
575+
context,
576+
"The message {} has no UID on the server to delete", &msg.rfc724_mid
577+
);
573578
} else {
574579
/* if this is the last existing part of the message,
575580
we delete the message from the server */

0 commit comments

Comments
 (0)