1
0
Fork 1
mirror of https://github.com/coddingtonbear/django-mailbox.git synced 2026-07-10 06:48:19 +02:00

testing on feature

This commit is contained in:
Alireza Lotfi 2022-09-14 12:04:53 -04:00
parent 2322c31913
commit 01ed3337b1
2 changed files with 132 additions and 131 deletions

View file

@ -216,24 +216,24 @@ class Mailbox(models.Model):
archive=self.archive
)
conn.connect(self.username, self.password)
# elif self.type == 'office365':
# conn = Office365ImapTransport(
# self.location,
# port=self.port if self.port else None,
# tls=self.use_tls,
# ssl=self.use_ssl,
# archive=self.archive,
# folder=self.folder
# )
# conn.connect(self.username, self.password)
elif self.type == 'office365':
conn = Office365Transport(
self.location,
self.username,
folder=self.folder,
archive=self.archive
port=self.port if self.port else None,
tls=self.use_tls,
ssl=self.use_ssl,
archive=self.archive,
folder=self.folder
)
conn.connect()
conn.connect(self.username, self.password)
# elif self.type == 'office365':
# conn = Office365Transport(
# self.location,
# self.username,
# folder=self.folder,
# archive=self.archive
# )
# conn.connect()
elif self.type == 'pop3':
conn = Pop3Transport(
self.location,