mirror of
https://github.com/coddingtonbear/django-mailbox.git
synced 2026-07-09 22:38:19 +02:00
Update models.py
This commit is contained in:
parent
edc27af632
commit
e713b5c82f
1 changed files with 1 additions and 1 deletions
|
|
@ -385,7 +385,7 @@ class Mailbox(models.Model):
|
|||
# Fix to accept subject emojis in utf-8
|
||||
if 'subject' in message:
|
||||
msg.subject = (
|
||||
utils.convert_header_to_unicode(message['subject']).encode('raw-unicode-escape'))[0:255]
|
||||
utils.convert_header_to_unicode(message['subject'].encode('raw-unicode-escape'))[0:255]
|
||||
)
|
||||
msg.subject = unicode(email.header.decode_header(msg.subject)[0][0]), errors='ignore')
|
||||
if 'message-id' in message:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue