mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
Add Python test
This commit is contained in:
@@ -187,7 +187,9 @@ class DirectImap:
|
||||
""" (blocking) wait for next idle message from server. """
|
||||
assert self._idling
|
||||
self.account.log("imap-direct: calling idle_check")
|
||||
res = self.conn.idle_check()
|
||||
res = self.conn.idle_check(timeout=30)
|
||||
if len(res) == 0:
|
||||
raise TimeoutError
|
||||
if terminate:
|
||||
self.idle_done()
|
||||
return res
|
||||
|
||||
Reference in New Issue
Block a user