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()`.
This commit is contained in:
iequidoo
2024-03-21 02:47:13 -03:00
committed by iequidoo
parent 7960944b14
commit 0e5db36205

View File

@@ -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(())
}