mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-12-28 01:28:51 +01:00
PY3 get_email support in method ticket_from_message (if message isinstance bytes use email.email_from_bytes(msg) else ..from_string(msg)) ... clear
This commit is contained in:
parent
4c97ecd0ae
commit
5998faa6a5
@ -274,9 +274,6 @@ def ticket_from_message(message, queue, logger):
|
||||
if six.PY2:
|
||||
message = email.message_from_string(msg)
|
||||
elif six.PY3:
|
||||
print(type(msg))
|
||||
print(msg)
|
||||
print(isinstance(msg, bytes))
|
||||
if isinstance(msg, bytes):
|
||||
message = email.message_from_bytes(msg)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user