mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 04:46:29 +03:00
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:
@@ -574,6 +574,9 @@ impl Context {
|
|||||||
_ => Default::default(),
|
_ => Default::default(),
|
||||||
};
|
};
|
||||||
self.set_config_internal(key, value).await?;
|
self.set_config_internal(key, value).await?;
|
||||||
|
if key == Config::SentboxWatch {
|
||||||
|
self.last_full_folder_scan.lock().await.take();
|
||||||
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user