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
6136dea28f
commit
204d67a57d
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
|
# Fix to accept subject emojis in utf-8
|
||||||
if 'subject' in message:
|
if 'subject' in message:
|
||||||
msg.subject = (
|
msg.subject = (
|
||||||
utils.convert_header_to_unicode(message['subject'].encode('raw-unicode-escape'))[0:255]
|
utils.convert_header_to_unicode(message['subject'].decode('raw-unicode-escape'))[0:255]
|
||||||
)
|
)
|
||||||
msg.subject = unicode(email.header.decode_header(msg.subject)[0][0], errors='ignore')
|
msg.subject = unicode(email.header.decode_header(msg.subject)[0][0], errors='ignore')
|
||||||
if 'message-id' in message:
|
if 'message-id' in message:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue