mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-12-25 16:18:51 +01:00
do not throw exceptions for invalid/non-UTF8 IMAP content
This commit is contained in:
parent
b5feeb7ee9
commit
fe92880928
@ -198,7 +198,7 @@ def process_queue(q, logger):
|
|||||||
for num in msgnums:
|
for num in msgnums:
|
||||||
logger.info("Processing message %s" % num)
|
logger.info("Processing message %s" % num)
|
||||||
status, data = server.fetch(num, '(RFC822)')
|
status, data = server.fetch(num, '(RFC822)')
|
||||||
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], errors='replace'), 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" % num)
|
logger.info("Successfully processed message %s, deleted from IMAP server" % num)
|
||||||
|
Loading…
Reference in New Issue
Block a user