aboutsummaryrefslogtreecommitdiffstats
path: root/servo
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-10-26 16:04:27 +0200
committerFilipp Lepalaan <filipp@mac.com>2015-10-26 16:04:27 +0200
commitddcdda49cf88a296ba9f6469e833ec540136866c (patch)
treee2aab30744960cd48d32ab64e99ae36dac5fbcfe /servo
parent67ac7e7cf17fcc72cd2ddfa6c6c123865986ed59 (diff)
downloadServo-ddcdda49cf88a296ba9f6469e833ec540136866c.tar.gz
Servo-ddcdda49cf88a296ba9f6469e833ec540136866c.tar.bz2
Servo-ddcdda49cf88a296ba9f6469e833ec540136866c.zip
Fix sender charset detection
Diffstat (limited to 'servo')
-rw-r--r--servo/models/note.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/servo/models/note.py b/servo/models/note.py
index b85516a..5db054b 100644
--- a/servo/models/note.py
+++ b/servo/models/note.py
@@ -253,7 +253,7 @@ class Note(MPTTModel):
Creates a new Note from an email message
"""
sender = decode_header(msg['From'])
- detected = chardet.detect(i[0]).get('encoding')
+ detected = chardet.detect(sender[0][0]).get('encoding')
sender = [i[0].decode(i[1] or detected) for i in sender]
sender = ' '.join(sender)