mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
actually enable online account caching. previously it was creating (>100) online test accounts
This commit is contained in:
@@ -177,6 +177,9 @@ class IdleManager:
|
||||
def __init__(self, direct_imap):
|
||||
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