diff options
author | Filipp Lepalaan <filipp@mac.com> | 2015-10-26 16:04:27 +0200 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2015-10-26 16:04:27 +0200 |
commit | ddcdda49cf88a296ba9f6469e833ec540136866c (patch) | |
tree | e2aab30744960cd48d32ab64e99ae36dac5fbcfe /servo | |
parent | 67ac7e7cf17fcc72cd2ddfa6c6c123865986ed59 (diff) | |
download | Servo-ddcdda49cf88a296ba9f6469e833ec540136866c.tar.gz Servo-ddcdda49cf88a296ba9f6469e833ec540136866c.tar.bz2 Servo-ddcdda49cf88a296ba9f6469e833ec540136866c.zip |
Fix sender charset detection
Diffstat (limited to 'servo')
-rw-r--r-- | servo/models/note.py | 2 |
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) |