summaryrefslogtreecommitdiff
path: root/alot/db.py
diff options
context:
space:
mode:
authorDaniel <quite@hack.org>2012-03-02 14:22:51 +0100
committerDaniel <quite@hack.org>2012-03-02 21:07:02 +0100
commit0878644b05c7d6d02e30be970044c943f226ab8b (patch)
tree294ccd40a4b579e783e1b9bc202c4b752edafdde /alot/db.py
parent85d06c48bcaa0828d27cadeba66fc38aa63b100f (diff)
Unique author names in the resulting string
Diffstat (limited to 'alot/db.py')
-rw-r--r--alot/db.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/alot/db.py b/alot/db.py
index e27815e7..08ccbaed 100644
--- a/alot/db.py
+++ b/alot/db.py
@@ -509,7 +509,10 @@ class Thread(object):
aname = "me"
if not aname:
aname = aaddress
- authorslist.append(aname)
+ try:
+ authorslist.index(aname)
+ except ValueError:
+ authorslist.append(aname)
return ', '.join(authorslist)
else:
return self._nm_authors_string