From 634cbd14f0a9f4ca1c101f5d0ef7b33b1b0e2ccd Mon Sep 17 00:00:00 2001 From: link2xt Date: Tue, 8 Apr 2025 23:11:36 +0000 Subject: [PATCH] fix: restart I/O when mvbox_move setting is changed When the setting is enabled, new IMAP loop should be started. --- src/config.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index e6e3f5b01..d24d5bfcd 100644 --- a/src/config.rs +++ b/src/config.rs @@ -475,7 +475,10 @@ impl Config { /// Whether the config option needs an IO scheduler restart to take effect. pub(crate) fn needs_io_restart(&self) -> bool { - matches!(self, Config::OnlyFetchMvbox | Config::SentboxWatch) + matches!( + self, + Config::MvboxMove | Config::OnlyFetchMvbox | Config::SentboxWatch + ) } }