From ddcdda49cf88a296ba9f6469e833ec540136866c Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Mon, 26 Oct 2015 16:04:27 +0200 Subject: Fix sender charset detection --- servo/models/note.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'servo/models/note.py') 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) -- cgit v1.2.3