mirror of
https://github.com/chatmail/core.git
synced 2026-04-27 02:16:29 +03:00
feat: Start IMAP loop for sentbox only if it is configured (#5105)
This commit is contained in:
@@ -830,10 +830,7 @@ impl Scheduler {
|
||||
|
||||
for (meaning, should_watch) in [
|
||||
(FolderMeaning::Mvbox, ctx.should_watch_mvbox().await),
|
||||
(
|
||||
FolderMeaning::Sent,
|
||||
ctx.get_config_bool(Config::SentboxWatch).await,
|
||||
),
|
||||
(FolderMeaning::Sent, ctx.should_watch_sentbox().await),
|
||||
] {
|
||||
if should_watch? {
|
||||
let (conn_state, handlers) = ImapConnectionState::new(ctx).await?;
|
||||
|
||||
Reference in New Issue
Block a user