forked from extern/django-helpdesk
Force message to be unicode to avoid encoding issues
This commit is contained in:
parent
77978ec644
commit
dc851fc557
@ -260,7 +260,7 @@ def decode_mail_headers(string):
|
||||
|
||||
def ticket_from_message(message, queue, logger):
|
||||
# 'message' must be an RFC822 formatted message.
|
||||
message = email.message_from_string(message)
|
||||
message = email.message_from_string(message.encode('utf-8'))
|
||||
subject = message.get('subject', _('Created from e-mail'))
|
||||
subject = decode_mail_headers(decodeUnknown(message.get_charset(), subject))
|
||||
for affix in STRIPPED_SUBJECT_STRINGS:
|
||||
|
Loading…
Reference in New Issue
Block a user