From dca20e1e1c2fd91a47e562ebb021d9784b0ec255 Mon Sep 17 00:00:00 2001 From: Serafim Bordei Date: Wed, 27 Jul 2022 11:49:48 +0200 Subject: [PATCH] Update office365.py and models.py --- build/lib/django_mailbox/transports/office365.py | 5 ++--- django_mailbox/models.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/build/lib/django_mailbox/transports/office365.py b/build/lib/django_mailbox/transports/office365.py index f98f8c1..674e910 100644 --- a/build/lib/django_mailbox/transports/office365.py +++ b/build/lib/django_mailbox/transports/office365.py @@ -10,7 +10,7 @@ logger = logging.getLogger(__name__) class Office365Transport(EmailTransport): def __init__( - self, hostname, port=None, ssl=False, tls=False, + self, port=None, ssl=False, tls=False, archive='', folder=None, client_id=None, client_secret=None, tenant_id=None ): self.max_message_size = getattr( @@ -23,7 +23,6 @@ class Office365Transport(EmailTransport): 'DJANGO_MAILBOX_INTEGRATION_TESTING_SUBJECT', None ) - self.hostname = hostname self.port = port self.archive = archive self.folder = folder @@ -59,7 +58,7 @@ class Office365Transport(EmailTransport): # # splitting into individual UIDs. # if message_id_string: # return message_id_string.decode().split(' ') - # return [] + return [] def _get_small_message_ids(self, message_ids): # Using existing message uids, get the sizes and diff --git a/django_mailbox/models.py b/django_mailbox/models.py index 28c2bb5..1606f8b 100644 --- a/django_mailbox/models.py +++ b/django_mailbox/models.py @@ -208,7 +208,7 @@ class Mailbox(models.Model): @property def tenant_id(self): """Returns (if specified) the tenant id for Office365.""" - tenant_id = self._query_string.get('tentant_id', None) + tenant_id = self._query_string.get('tenant_id', None) if not tenant_id: return None return tenant_id[0]