1
0
Fork 1
mirror of https://github.com/coddingtonbear/django-mailbox.git synced 2026-07-09 22:38:19 +02:00

office365 implementation

This commit is contained in:
Pietro Mingo 2022-07-29 16:01:30 +02:00
parent dca20e1e1c
commit ced6b0997b
3 changed files with 37 additions and 83 deletions

View file

@ -250,14 +250,12 @@ class Mailbox(models.Model):
elif self.type == 'office365':
conn = Office365Transport(
self.location,
self.username,
port=self.port if self.port else None,
ssl=True,
client_id=self.client_id,
client_secret=self.client_secret,
tenant_id=self.tenant_id,
folder=self.folder
)
conn.connect(self.username, self.password)
conn.connect(self.client_id, self.client_secret, self.tenant_id)
elif self.type == 'maildir':
conn = MaildirTransport(self.location)
elif self.type == 'mbox':