diff options
author | pazz <patricktotzke@gmail.com> | 2011-06-24 13:45:50 +0100 |
---|---|---|
committer | pazz <patricktotzke@gmail.com> | 2011-06-24 13:45:50 +0100 |
commit | c4d468f890fb1985de7cdfc029fc4f917bc3fde3 (patch) | |
tree | 3f80393037d96b5d8eeb5d4cccabb9fb224abe9a /alot | |
parent | 72c2c9e4c5550298c369a13d1c808a6c418a41ba (diff) |
names only in msg summary
Diffstat (limited to 'alot')
-rw-r--r-- | alot/db.py | 4 | ||||
-rw-r--r-- | alot/widgets.py | 3 |
2 files changed, 6 insertions, 1 deletions
@@ -21,6 +21,7 @@ from datetime import datetime import email from settings import config +import helper class DBManager: @@ -192,6 +193,9 @@ class Message: #this doesn't work. see Note in doc -> more work here. return [self.dbman.find_message(mid) for mid in self.replies] + def get_author(self): + return helper.parse_addr(self.sender) + def get_tags(self): return list(self.tags) diff --git a/alot/widgets.py b/alot/widgets.py index 7721aebd..3304677b 100644 --- a/alot/widgets.py +++ b/alot/widgets.py @@ -313,7 +313,8 @@ class MessageSummaryWidget(urwid.WidgetWrap): prefix = "- " if self.folded: prefix = '+ ' - return "%s%s (%s)" % (prefix, self.message.sender, + aname, aaddress = self.message.get_author() + return "%s%s (%s)" % (prefix, aname, pretty_datetime(self.message.datetime)) def toggle_folded(self): |