diff options
-rw-r--r-- | alot/widgets/thread.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/alot/widgets/thread.py b/alot/widgets/thread.py index ca05ebd9..f013bded 100644 --- a/alot/widgets/thread.py +++ b/alot/widgets/thread.py @@ -57,9 +57,14 @@ class MessageSummaryWidget(urwid.WidgetWrap): urwid.WidgetWrap.__init__(self, line) def __str__(self): + mail = self.message.get_email() + + subj = mail.get_all('subject', ['']) + subj = ','.join([decode_header(s, normalize = True) for s in subj]) + author, address = self.message.get_author() date = self.message.get_datestring() - rep = author if author != '' else address + rep = '%s: %s' % (author if author != '' else address, subj) if date is not None: rep += " (%s)" % date return rep |