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.
This commit is contained in:
link2xt
2026-09-17 11:50:13 +00:00
committed by l
parent dc9bba0697
commit 555b8b8b51
2 changed files with 0 additions and 6 deletions

View File

@@ -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]: