Remove unused dest_uid argument from Imap.mv()

It was always set to 0 because we don't know the destination UID.
This commit is contained in:
Alexander Krotov
2020-03-08 21:24:03 +03:00
parent cb0c00bc6d
commit 65fdfac866
2 changed files with 8 additions and 16 deletions

View File

@@ -794,7 +794,6 @@ impl Imap {
folder: &str,
uid: u32,
dest_folder: &str,
dest_uid: &mut u32,
) -> ImapActionResult {
task::block_on(async move {
if folder == dest_folder {
@@ -811,10 +810,6 @@ impl Imap {
return imapresult;
}
// we are connected, and the folder is selected
// XXX Rust-Imap provides no target uid on mv, so just set it to 0
*dest_uid = 0;
let set = format!("{}", uid);
let display_folder_id = format!("{}/{}", folder, uid);