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.
This commit is contained in:
B. Petersen
2020-01-20 23:18:48 +01:00
committed by Alexander Krotov
parent a3f2088046
commit 0043e95ba7

View File

@@ -957,8 +957,8 @@ impl Imap {
remote_message_id,
message_id,
);
*uid = 0;
}
*uid = 0;
}
Err(err) => {
warn!(