From 90255bda684c677d40fdc6dec09649a5fd229d2f Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Tue, 16 Jun 2020 00:17:33 +0300 Subject: [PATCH] Do not interrupt inbox when a moved message is detected Interrupting inbox task causes fetch on the inbox. There is nothing to fetch on the inbox when a message was just moved to movebox, possibly by another device. --- src/imap/mod.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/imap/mod.rs b/src/imap/mod.rs index 3bb0bf249..4b709b3e2 100644 --- a/src/imap/mod.rs +++ b/src/imap/mod.rs @@ -1402,10 +1402,7 @@ async fn precheck_imf( if old_server_folder != server_folder || old_server_uid != server_uid { update_server_uid(context, rfc724_mid, server_folder, server_uid).await; - context - .interrupt_inbox(InterruptInfo::new(false, Some(msg_id))) - .await; - info!(context, "Updating server_uid and interrupting") + info!(context, "Updating server_uid") } Ok(true) } else {