diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-11-20 10:36:51 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-11-20 10:36:51 +0100 |
commit | c6c604ab535584044dfe37a0f9abf3bcc74fe42e (patch) | |
tree | 4a8bedf144f99de7663cc954e4543669e0411af1 /alot | |
parent | 9bbf5c4444f5ffebffa49c08ae84c859597735d9 (diff) |
commands/thread: use imported function directly
Diffstat (limited to 'alot')
-rw-r--r-- | alot/commands/thread.py | 4 |
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 |