From c6c604ab535584044dfe37a0f9abf3bcc74fe42e Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sat, 20 Nov 2021 10:36:51 +0100 Subject: commands/thread: use imported function directly --- alot/commands/thread.py | 4 ++-- 1 file 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 -- cgit v1.2.3