summaryrefslogtreecommitdiff
path: root/alot/commands/thread.py
diff options
context:
space:
mode:
Diffstat (limited to 'alot/commands/thread.py')
-rw-r--r--alot/commands/thread.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/alot/commands/thread.py b/alot/commands/thread.py
index 87deab92..205455f5 100644
--- a/alot/commands/thread.py
+++ b/alot/commands/thread.py
@@ -45,7 +45,7 @@ def ensure_unique_address(recipients):
no address appears multiple times.
"""
res = dict()
- for name, address in email.utils.getaddresses(recipients):
+ for name, address in getaddresses(recipients):
res[address] = name
logging.debug(res)
urecipients = [formataddr((n, a)) for a, n in res.items()]
@@ -63,7 +63,7 @@ def clear_my_address(my_account, value):
:rtype: list(str)
"""
new_value = []
- for name, address in email.utils.getaddresses(value):
+ for name, address in getaddresses(value):
if not my_account.matches_address(address):
new_value.append(formataddr((name, address)))
return new_value