fix: Lowercase address in add_transport() (#6805)

This commit is contained in:
Hocuri
2025-04-17 14:19:28 +02:00
committed by GitHub
parent a6713630b9
commit 1db9b77711
4 changed files with 37 additions and 7 deletions

View File

@@ -115,6 +115,12 @@ class Account:
"""Add a new transport."""
yield self._rpc.add_or_update_transport.future(self.id, params)
@futuremethod
def list_transports(self):
"""Returns the list of all email accounts that are used as a transport in the current profile."""
transports = yield self._rpc.list_transports.future(self.id)
return transports
def bring_online(self):
"""Start I/O and wait until IMAP becomes IDLE."""
self.start_io()