diff options
Diffstat (limited to 'alot/widgets/thread.py')
-rw-r--r-- | alot/widgets/thread.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/alot/widgets/thread.py b/alot/widgets/thread.py index 0096188d..db0af0e0 100644 --- a/alot/widgets/thread.py +++ b/alot/widgets/thread.py @@ -11,10 +11,9 @@ import urwid from .globals import TagWidget from .globals import AttachmentWidget from ..settings.const import settings -from ..db.utils import decode_header, X_SIGNATURE_MESSAGE_HEADER +from ..db.utils import X_SIGNATURE_MESSAGE_HEADER from ..helper import string_sanitize - class MessageSummaryWidget(urwid.WidgetWrap): """ one line summary of a :class:`~alot.db.message.Message`. @@ -60,7 +59,7 @@ class MessageSummaryWidget(urwid.WidgetWrap): mail = self.message.get_email() subj = mail.get_all('subject', ['']) - subj = ','.join([decode_header(s, normalize = True) for s in subj]) + subj = re.sub(r'\n\s+', r' ', ','.join(subj)) author, address = self.message.get_author() date = self.message.get_datestring() @@ -128,7 +127,7 @@ class HeadersWidget(urwid.WidgetWrap): # TODO even/odd keyw = ('fixed', max_key_len + 1, urwid.Text((self._key_attr, key))) - valuew = urwid.Text((self._value_attr, decode_header(value))) + valuew = urwid.Text((self._value_attr, value)) linew = urwid.AttrMap(urwid.Columns([keyw, valuew]), self._gaps_attr) widgets.append(linew) |