From 0e5db36205ee46673bda8cef8d65823a4b870ebc Mon Sep 17 00:00:00 2001 From: iequidoo Date: Thu, 21 Mar 2024 02:47:13 -0300 Subject: [PATCH] fix: Rescan folders after changing Config::SentboxWatch If `Config::SentboxWatch` changes, the sentbox needs to be [un]configured which is done by `Imap::scan_folders()`. --- src/config.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/config.rs b/src/config.rs index ad5492939..84714bb30 100644 --- a/src/config.rs +++ b/src/config.rs @@ -574,6 +574,9 @@ impl Context { _ => Default::default(), }; self.set_config_internal(key, value).await?; + if key == Config::SentboxWatch { + self.last_full_folder_scan.lock().await.take(); + } Ok(()) }