mirror of
https://github.com/chatmail/core.git
synced 2026-09-22 13:01:21 +03:00
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:
@@ -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]:
|
||||
|
||||
Reference in New Issue
Block a user