From 6db03356b51199d1de9c4335a301d855f2a4ab91 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Sat, 7 Mar 2020 02:51:31 +0300 Subject: [PATCH] Return AlreadyDone from Imap.delete_msg if message is gone This way DeleteMsgOnImap will remove invalid server_uid from the database. --- 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 c0c118da0..b7de59b5c 100644 --- a/src/imap/mod.rs +++ b/src/imap/mod.rs @@ -1019,7 +1019,7 @@ impl Imap { display_imap_id, message_id, ); - return ImapActionResult::Failed; + return ImapActionResult::AlreadyDone; }; let remote_message_id = get_fetch_headers(fetch)