diff options
-rw-r--r-- | alot/account.py | 3 | ||||
-rw-r--r-- | alot/defaults/abook_contacts.spec | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/alot/account.py b/alot/account.py index 12cb3c23..ab6c9af7 100644 --- a/alot/account.py +++ b/alot/account.py @@ -231,7 +231,8 @@ class AbookAddressBook(AddressBook): def get_contacts(self): c = self._config - return [(c[id]['name'], c[id]['email']) for id in c.sections] + return [(c[id]['name'], c[id]['email']) for id in c.sections if \ + c[id]['email'] is not None] class MatchSdtoutAddressbook(AddressBook): diff --git a/alot/defaults/abook_contacts.spec b/alot/defaults/abook_contacts.spec index d8855fce..a360c069 100644 --- a/alot/defaults/abook_contacts.spec +++ b/alot/defaults/abook_contacts.spec @@ -3,5 +3,5 @@ version = string [__many__] - name = string - email = string + name = string(default=None) + email = string(default=None) |