From 5dff341e85e003962182d6f5488f42cc7229d374 Mon Sep 17 00:00:00 2001 From: link2xt Date: Mon, 9 Oct 2023 00:58:12 +0000 Subject: [PATCH] feat: add developer option to disable IMAP IDLE --- _locales/en.xml | 2 ++ .../components/dialogs/Settings-ExperimentalFeatures.tsx | 4 ++++ .../components/dialogs/Settings-ImapFolderHandling.tsx | 5 +++++ 3 files changed, 11 insertions(+) diff --git a/_locales/en.xml b/_locales/en.xml index 55311abf23..cd98a16870 100644 --- a/_locales/en.xml +++ b/_locales/en.xml @@ -678,6 +678,8 @@ Chat conversations are moved to avoid cluttering the Inbox Only Fetch from DeltaChat Folder Ignore other folders. Requires your server to move chat messages to the DeltaChat folder. + Disable IMAP IDLE + Poll IMAP server for new messages even if the server supports IDLE. Show Classic E-Mails No, chats only For accepted contacts diff --git a/src/renderer/components/dialogs/Settings-ExperimentalFeatures.tsx b/src/renderer/components/dialogs/Settings-ExperimentalFeatures.tsx index 9529463430..081fa90798 100644 --- a/src/renderer/components/dialogs/Settings-ExperimentalFeatures.tsx +++ b/src/renderer/components/dialogs/Settings-ExperimentalFeatures.tsx @@ -81,6 +81,10 @@ export function SettingsExperimentalFeatures({ key: 'experimentalEnableMarkdownInMessages', label: 'Render Markdown in Messages', })} + {renderDTSettingSwitch({ + key: 'disableImapIdle', + label: tx('pref_disable_imap_idle'), + })} {renderDTSettingSwitch({ key: 'enableWebxdcDevTools', label: 'Enable Webxdc Devtools', diff --git a/src/renderer/components/dialogs/Settings-ImapFolderHandling.tsx b/src/renderer/components/dialogs/Settings-ImapFolderHandling.tsx index e7b3c00ebc..6fc4f95153 100644 --- a/src/renderer/components/dialogs/Settings-ImapFolderHandling.tsx +++ b/src/renderer/components/dialogs/Settings-ImapFolderHandling.tsx @@ -41,6 +41,11 @@ export default function SettingsImapFolderHandling({ key: 'only_fetch_mvbox', description: tx('pref_only_fetch_mvbox_explain'), })} + {renderDeltaSwitch2({ + label: tx('pref_disable_idle_title'), + key: 'disable_idle', + description: tx('pref_disable_idle_explain'), + })} ) }