aboutsummaryrefslogtreecommitdiffstats
path: root/cloud_mdir_sync/office365.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloud_mdir_sync/office365.py')
-rw-r--r--cloud_mdir_sync/office365.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/cloud_mdir_sync/office365.py b/cloud_mdir_sync/office365.py
index a13c7bb..7b6e7c8 100644
--- a/cloud_mdir_sync/office365.py
+++ b/cloud_mdir_sync/office365.py
@@ -362,21 +362,21 @@ class O365Mailbox(mailbox.Mailbox):
loop: asyncio.AbstractEventLoop
timer = None
use_owa_subscribe = True
- cfg: config.Config
graph: GraphAPI
def __init__(self,
+ cfg: config.Config,
mailbox: str,
user: Optional[str] = None,
tenant="common"):
- super().__init__()
+ super().__init__(cfg)
self.mailbox = mailbox
self.tenant = tenant
self.user = user
- async def setup_mbox(self, cfg: config.Config):
+ async def setup_mbox(self):
"""Setup access to the authenticated API domain for this endpoint"""
- self.cfg = cfg
+ cfg = self.cfg
self.loop = cfg.loop
did = f"o365-{self.user}-{self.tenant}"
graph = cfg.domains.get(did)