From 38ed94367cf22522232fe1b1ade7512bc1594c69 Mon Sep 17 00:00:00 2001 From: Hocuri Date: Wed, 18 Nov 2020 12:08:28 +0100 Subject: [PATCH] Update src/config.rs Co-authored-by: bjoern --- src/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.rs b/src/config.rs index e4dcbee77..73dc15da7 100644 --- a/src/config.rs +++ b/src/config.rs @@ -255,8 +255,8 @@ impl Context { } Config::InboxWatch => { if self.get_config(Config::InboxWatch).await.as_deref() != value { - // If Inbox-watch is disabled and then enabled again, we don't want - // emails that arrived in the meantime to be fetched + // If Inbox-watch is disabled and enabled again, do not fetch emails from in between. + // this avoids unexpected mass-downloads and -deletions (if delete_server_after is set) if let Some(inbox) = self.get_config(Config::ConfiguredInboxFolder).await { crate::imap::set_config_last_seen_uid(self, inbox, 0, 0).await; }