diff options
author | pazz <patricktotzke@gmail.com> | 2011-07-16 11:27:34 +0100 |
---|---|---|
committer | pazz <patricktotzke@gmail.com> | 2011-07-16 11:27:34 +0100 |
commit | a0c52f811d033b2fb0c7680de378a8fd12090e46 (patch) | |
tree | e21aaf503dbf0d9f5b1ba2cbbbc6c52c830bc57f /alot/db.py | |
parent | 8e2f701bc3d64edcdc2be1e6c65aef5bfdf9c3b0 (diff) |
unicode in headers..
api needs to change: header fields are stored as utf-8 so we can
convert stuff on api level. For now this fixes it. issue #46
Diffstat (limited to 'alot/db.py')
-rw-r--r-- | alot/db.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -303,7 +303,8 @@ class Message: self._thread = thread self._datetime = datetime.fromtimestamp(msg.get_date()) self._filename = msg.get_filename() - self._from = msg.get_header('From') + # TODO: change api to return unicode + self._from = msg.get_header('From').decode(DB_ENC) self._email = None # will be read upon first use self._attachments = None # will be read upon first use self._tags = set(msg.get_tags()) |