Hello! We are running our annual fundraising. Please consider making a donation if you value this freely available service or want to support people around the world working towards liberatory social change. https://riseup.net/donate.

Unverified Commit 92f4b40a authored by Kali Kaneko's avatar Kali Kaneko Committed by meskio
Browse files

[refactor] adapt to the new Account signature

parent e442eb8a
......@@ -140,7 +140,7 @@ class LeapSessionAdapter(object):
self.fresh_account = False
self.incoming_mail_fetcher = None
self.account = Account(soledad)
self.account = Account(soledad, userid)
username, provider = userid.split('@')
smtp_client_cert = os.path.join(
......
......@@ -91,7 +91,7 @@ def start_incoming_mail_service(keymanager, soledad, userid):
check_period=get_mail_check_period())
return incoming_mail
acc = Account(soledad)
acc = Account(soledad, userid)
d = acc.callWhenReady(lambda _: acc.get_collection_by_mailbox(INBOX_NAME))
d.addCallback(setUpIncomingMail)
d.addErrback(log.err)
......
......@@ -60,6 +60,7 @@ def initialize_soledad(uuid, email, passwd,
cert_file = ""
class Mock(object):
def __init__(self, return_value=None):
self._return = return_value
......@@ -140,7 +141,7 @@ class MBOXPlumber(object):
self.sol = initialize_soledad(
self.uuid, self.userid, self.passwd,
secrets, localdb, "/tmp", "/tmp")
self.acct = IMAPAccount(self.userid, self.sol)
self.acct = IMAPAccount(self.sol, self.userid)
return True
#
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment