forked from extern/django-helpdesk
merged with upstream
This commit is contained in:
parent
556b6900db
commit
e326fea099
@ -205,9 +205,9 @@ def process_queue(q, logger):
|
|||||||
ticket = ticket_from_message(message=encoding.smart_text(data[0][1]), queue=q, logger=logger)
|
ticket = ticket_from_message(message=encoding.smart_text(data[0][1]), queue=q, logger=logger)
|
||||||
if ticket:
|
if ticket:
|
||||||
server.store(num, '+FLAGS', '\\Deleted')
|
server.store(num, '+FLAGS', '\\Deleted')
|
||||||
logger.info("Successfully processed message %s, deleted from IMAP server" % str(num))
|
logger.info("Successfully processed message %s, deleted from IMAP server" % num)
|
||||||
else:
|
else:
|
||||||
logger.warn("Message %s was not successfully processed, and will be left on IMAP server" % str(num))
|
logger.warn("Message %s was not successfully processed, and will be left on IMAP server" % num)
|
||||||
|
|
||||||
server.expunge()
|
server.expunge()
|
||||||
server.close()
|
server.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user