mirror of
https://github.com/chatmail/core.git
synced 2026-05-19 06:46:32 +03:00
some fixes
This commit is contained in:
@@ -12,7 +12,7 @@ categories = ["cryptography", "std", "email"]
|
|||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
name = "deltachat"
|
name = "deltachat"
|
||||||
crate-type = ["cdylib"]
|
crate-type = ["cdylib", "staticlib"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
deltachat = { path = "../", default-features = false }
|
deltachat = { path = "../", default-features = false }
|
||||||
|
|||||||
@@ -486,7 +486,7 @@ class Account(object):
|
|||||||
ev = self._evlogger.get_matching("DC_EVENT_INCOMING_MSG")
|
ev = self._evlogger.get_matching("DC_EVENT_INCOMING_MSG")
|
||||||
return self.get_message_by_id(ev[2])
|
return self.get_message_by_id(ev[2])
|
||||||
|
|
||||||
def start_threads(self, mvbox=False, sentbox=False):
|
def start_threads(self):
|
||||||
""" start IMAP/SMTP threads (and configure account if it hasn't happened).
|
""" start IMAP/SMTP threads (and configure account if it hasn't happened).
|
||||||
|
|
||||||
:raises: ValueError if 'addr' or 'mail_pw' are not configured.
|
:raises: ValueError if 'addr' or 'mail_pw' are not configured.
|
||||||
@@ -494,7 +494,7 @@ class Account(object):
|
|||||||
"""
|
"""
|
||||||
if not self.is_configured():
|
if not self.is_configured():
|
||||||
self.configure()
|
self.configure()
|
||||||
self._threads.start(mvbox=mvbox, sentbox=sentbox)
|
self._threads.start()
|
||||||
|
|
||||||
def stop_threads(self, wait=True):
|
def stop_threads(self, wait=True):
|
||||||
""" stop IMAP/SMTP threads. """
|
""" stop IMAP/SMTP threads. """
|
||||||
|
|||||||
@@ -182,7 +182,7 @@ def acfactory(pytestconfig, tmpdir, request, session_liveconfig):
|
|||||||
def get_online_configuring_account(self, mvbox=False, sentbox=False):
|
def get_online_configuring_account(self, mvbox=False, sentbox=False):
|
||||||
ac, configdict = self.get_online_config()
|
ac, configdict = self.get_online_config()
|
||||||
ac.configure(**configdict)
|
ac.configure(**configdict)
|
||||||
ac.start_threads(mvbox=mvbox, sentbox=sentbox)
|
ac.start_threads()
|
||||||
return ac
|
return ac
|
||||||
|
|
||||||
def get_one_online_account(self):
|
def get_one_online_account(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user