From 012ba4f42d55282e81419735f15fd81fd44f50b8 Mon Sep 17 00:00:00 2001 From: Garret Wassermann Date: Fri, 26 Mar 2021 03:48:10 -0400 Subject: [PATCH] Update email.py Correct a typo so that imap code calls starttls() correctly. --- helpdesk/email.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpdesk/email.py b/helpdesk/email.py index 98507dea..becc90d0 100644 --- a/helpdesk/email.py +++ b/helpdesk/email.py @@ -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