summaryrefslogtreecommitdiff
path: root/alot/addressbook/external.py
diff options
context:
space:
mode:
Diffstat (limited to 'alot/addressbook/external.py')
-rw-r--r--alot/addressbook/external.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/addressbook/external.py b/alot/addressbook/external.py
index 6a89dd15..9de86f36 100644
--- a/alot/addressbook/external.py
+++ b/alot/addressbook/external.py
@@ -68,7 +68,7 @@ class ExternalAddressbook(AddressBook):
m = re.match(self.regex, l, self.reflags)
if m:
info = m.groupdict()
- if 'email' and 'name' in info:
+ if 'email' in info and 'name' in info:
email = info['email'].strip()
name = info['name']
res.append((name, email))