summaryrefslogtreecommitdiff
path: root/alot/addressbooks.py
diff options
context:
space:
mode:
Diffstat (limited to 'alot/addressbooks.py')
-rw-r--r--alot/addressbooks.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/alot/addressbooks.py b/alot/addressbooks.py
index d3d6936c..f527492f 100644
--- a/alot/addressbooks.py
+++ b/alot/addressbooks.py
@@ -44,8 +44,11 @@ class AbookAddressBook(AddressBook):
def get_contacts(self):
c = self._config
- return [(c[id]['name'], c[id]['email']) for id in c.sections if \
- c[id]['email'] is not None]
+ res = []
+ for id in c.sections:
+ for email in c[id]['email']:
+ if email: res.append((c[id]['name'], email))
+ return res
class MatchSdtoutAddressbook(AddressBook):