Update email.py

Correct a typo so that imap code calls starttls() correctly.
This commit is contained in:
Garret Wassermann 2021-03-26 03:48:10 -04:00 committed by GitHub
parent 0bdaa87a58
commit 012ba4f42d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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