diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2012-02-27 15:08:56 +0000 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2012-02-27 15:08:56 +0000 |
commit | 770592dc10f2ed7bf6b52d70c157395900139837 (patch) | |
tree | 6370a5e7b5feb7c90c32e5d9aecd24457cd26709 /alot | |
parent | 99b788c33f089fc43574dd187322bffca32d48a9 (diff) |
fix issue with abook format
closes #369
Diffstat (limited to 'alot')
-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) |