mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-28 19:03:14 +01:00
Update email.py
Correct a typo so that imap code calls starttls() correctly.
This commit is contained in:
parent
0bdaa87a58
commit
012ba4f42d
@ -143,7 +143,7 @@ def pop3_sync(q, logger, server):
|
||||
def imap_sync(q, logger, server):
|
||||
try:
|
||||
try:
|
||||
server.starttl()
|
||||
server.starttls()
|
||||
except Exception:
|
||||
logger.warning("IMAP4 StartTLS unsupported or failed. Connection will be unencrypted.")
|
||||
server.login(q.email_box_user or
|
||||
|
Loading…
Reference in New Issue
Block a user