mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2025-02-16 18:20:48 +01:00
Merge pull request #604 from Kirembu/master
Fix imaplib 'IMAP' module reference to 'IMAP4'
This commit is contained in:
commit
8a7662bf8c
@ -216,7 +216,7 @@ def process_queue(q, logger):
|
|||||||
q.email_box_pass or
|
q.email_box_pass or
|
||||||
settings.QUEUE_EMAIL_BOX_PASSWORD)
|
settings.QUEUE_EMAIL_BOX_PASSWORD)
|
||||||
server.select(q.email_box_imap_folder)
|
server.select(q.email_box_imap_folder)
|
||||||
except imaplib.IMAP.abort:
|
except imaplib.IMAP4.abort:
|
||||||
logger.error("IMAP login failed. Check that the server is accessible and that the username and password are correct.")
|
logger.error("IMAP login failed. Check that the server is accessible and that the username and password are correct.")
|
||||||
server.logout()
|
server.logout()
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
Loading…
Reference in New Issue
Block a user