diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2012-03-11 18:49:58 +0000 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2012-03-11 18:49:58 +0000 |
commit | c5d5fc97d47921b6a004349f09007727a3a629cd (patch) | |
tree | 2cc0af41f03cb2cdc71e435876c351ec88cc2882 /alot/widgets.py | |
parent | 99b2952adb9caff367a2a9b12dd848be1ec63e34 (diff) |
refactor: header utilities into db.utils
Diffstat (limited to 'alot/widgets.py')
-rw-r--r-- | alot/widgets.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/alot/widgets.py b/alot/widgets.py index c81f685c..fec069af 100644 --- a/alot/widgets.py +++ b/alot/widgets.py @@ -9,6 +9,7 @@ from alot.helper import string_decode import alot.db.message as message from alot.db.attachment import Attachment import time +from alot.db.utils import decode_header class DialogBox(urwid.WidgetWrap): @@ -472,7 +473,7 @@ class MessageWidget(urwid.WidgetWrap): for key in self._displayed_headers: if key in mail: for value in mail.get_all(key): - dvalue = message.decode_header(value, normalize=norm) + dvalue = decode_header(value, normalize=norm) lines.append((key, dvalue)) cols = [HeadersList(lines)] |