From 555b8b8b517af57a4660aa63825a438de5fbfd7b Mon Sep 17 00:00:00 2001 From: link2xt Date: Thu, 17 Sep 2026 11:50:13 +0000 Subject: [PATCH] test: do not fetch all messages when direct_imap is created This code is likely from the time when we reused mailboxes in python/ tests, it does not do anything anymore. --- deltachat-rpc-client/tests/conftest.py | 3 --- python/src/deltachat/direct_imap.py | 3 --- 2 files changed, 6 deletions(-) diff --git a/deltachat-rpc-client/tests/conftest.py b/deltachat-rpc-client/tests/conftest.py index 9bf4a1f75..e7899f7c5 100644 --- a/deltachat-rpc-client/tests/conftest.py +++ b/deltachat-rpc-client/tests/conftest.py @@ -180,9 +180,6 @@ class DirectImap: class IdleManager: def __init__(self, direct_imap) -> None: self.direct_imap = direct_imap - # fetch latest messages before starting idle so that it only - # returns messages that arrive anew - self.direct_imap.conn.fetch("1:*") self.direct_imap.conn.idle.start() def check(self, timeout=None) -> list[bytes]: diff --git a/python/src/deltachat/direct_imap.py b/python/src/deltachat/direct_imap.py index aa3e222e5..35491e41b 100644 --- a/python/src/deltachat/direct_imap.py +++ b/python/src/deltachat/direct_imap.py @@ -193,9 +193,6 @@ class IdleManager: def __init__(self, direct_imap) -> None: self.direct_imap = direct_imap self.log = direct_imap.account.log - # fetch latest messages before starting idle so that it only - # returns messages that arrive anew - self.direct_imap.conn.fetch("1:*") self.direct_imap.conn.idle.start() def check(self, timeout=None) -> List[bytes]: