mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-25 09:23:39 +01:00
Patch for #582, POP3 processing error on py3
This commit is contained in:
parent
a957e74853
commit
a10c662207
@ -176,7 +176,10 @@ def process_queue(q, logger):
|
|||||||
msgNum = msg.split(" ")[0]
|
msgNum = msg.split(" ")[0]
|
||||||
logger.info("Processing message %s" % msgNum)
|
logger.info("Processing message %s" % msgNum)
|
||||||
|
|
||||||
full_message = encoding.force_text("\n".join(server.retr(msgNum)[1]), errors='replace')
|
if six.PY2:
|
||||||
|
full_message = encoding.force_text("\n".join(server.retr(msgNum)[1]), errors='replace')
|
||||||
|
else:
|
||||||
|
full_message = encoding.force_text(b"\n".join(server.retr(msgNum)[1]), errors='replace')
|
||||||
ticket = ticket_from_message(message=full_message, queue=q, logger=logger)
|
ticket = ticket_from_message(message=full_message, queue=q, logger=logger)
|
||||||
|
|
||||||
if ticket:
|
if ticket:
|
||||||
|
Loading…
Reference in New Issue
Block a user