From 3cfa3711994fcfb32e848dc257215449b28e5667 Mon Sep 17 00:00:00 2001 From: Jonathan Barratt Date: Tue, 29 Nov 2016 00:39:14 +0700 Subject: [PATCH] hotfix for #456: patch calls to ticket_from_message add logger arg where missing in get_email --- helpdesk/management/commands/get_email.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpdesk/management/commands/get_email.py b/helpdesk/management/commands/get_email.py index 833a1358..e5b40c41 100644 --- a/helpdesk/management/commands/get_email.py +++ b/helpdesk/management/commands/get_email.py @@ -172,7 +172,7 @@ def process_queue(q, logger): logger.info("Processing message %s" % str(msgNum)) full_message = "\n".join(server.retr(msgNum)[1]) - ticket = ticket_from_message(message=full_message, queue=q) + ticket = ticket_from_message(message=full_message, queue=q, logger=logger) if ticket: server.dele(msgNum) @@ -211,7 +211,7 @@ def process_queue(q, logger): for num in msgnums: logger.info("Processing message %s" % str(num)) status, data = server.fetch(num, '(RFC822)') - ticket = ticket_from_message(message=data[0][1], queue=q) + ticket = ticket_from_message(message=data[0][1], queue=q, logger=logger) if ticket: server.store(num, '+FLAGS', '\\Deleted') logger.info("Successfully processed message %s, deleted from IMAP server" % str(msgNum))