summaryrefslogtreecommitdiff
path: root/alot/db.py
diff options
context:
space:
mode:
authorpazz <patricktotzke@gmail.com>2011-06-24 13:45:50 +0100
committerpazz <patricktotzke@gmail.com>2011-06-24 13:45:50 +0100
commitc4d468f890fb1985de7cdfc029fc4f917bc3fde3 (patch)
tree3f80393037d96b5d8eeb5d4cccabb9fb224abe9a /alot/db.py
parent72c2c9e4c5550298c369a13d1c808a6c418a41ba (diff)
names only in msg summary
Diffstat (limited to 'alot/db.py')
-rw-r--r--alot/db.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/alot/db.py b/alot/db.py
index 1936b136..302afb4e 100644
--- a/alot/db.py
+++ b/alot/db.py
@@ -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)