From 0043e95ba75cb799bb5a6fb2031a63e8653a480b Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Mon, 20 Jan 2020 23:18:48 +0100 Subject: [PATCH] fix message deletion on server before a message is actually deleted, we verify that server_folder+server_uid matches the Message-ID, so that we do not delete the wrong message by accident. the reason for that is that, to my knowledge, server_folder+server_uid are not necessarily stable but Message-ID is. anyway, this check was broken and set the server_uid to 0 in all cases - where it should be set to 0 _only_ on mismatches. --- src/imap/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/imap/mod.rs b/src/imap/mod.rs index dd3ab6964..4357e380a 100644 --- a/src/imap/mod.rs +++ b/src/imap/mod.rs @@ -957,8 +957,8 @@ impl Imap { remote_message_id, message_id, ); + *uid = 0; } - *uid = 0; } Err(err) => { warn!(