mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
fix: restart I/O when mvbox_move setting is changed
When the setting is enabled, new IMAP loop should be started.
This commit is contained in:
@@ -475,7 +475,10 @@ impl Config {
|
|||||||
|
|
||||||
/// Whether the config option needs an IO scheduler restart to take effect.
|
/// Whether the config option needs an IO scheduler restart to take effect.
|
||||||
pub(crate) fn needs_io_restart(&self) -> bool {
|
pub(crate) fn needs_io_restart(&self) -> bool {
|
||||||
matches!(self, Config::OnlyFetchMvbox | Config::SentboxWatch)
|
matches!(
|
||||||
|
self,
|
||||||
|
Config::MvboxMove | Config::OnlyFetchMvbox | Config::SentboxWatch
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user