summaryrefslogtreecommitdiff
path: root/alot/account.py
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2012-01-23 12:49:33 +0000
committerPatrick Totzke <patricktotzke@gmail.com>2012-01-23 12:49:33 +0000
commit524bcb2a6594914248577f6cb0d9146bf216cd62 (patch)
tree5131fa3c1bbb4adc8c98b98b654dedfbed6e743d /alot/account.py
parente4419fd3648f29ec2ad7def147d67d3acabef8c9 (diff)
fix: contact completion for contacts w/o name
If the a contact (a pair of strings name, address) has no name, then propose the address only instead of some strange `"" <address>`. Moreover, don't strip the namestring but use as is.
Diffstat (limited to 'alot/account.py')
-rw-r--r--alot/account.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/account.py b/alot/account.py
index b1387c2a..f5584272 100644
--- a/alot/account.py
+++ b/alot/account.py
@@ -382,6 +382,6 @@ class MatchSdtoutAddressbook(AddressBook):
if m:
info = m.groupdict()
email = info['email'].strip()
- name = info['name'].strip()
+ name = info['name']
res.append((name, email))
return res