diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2017-08-16 10:01:52 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2017-08-16 10:01:52 -0700 |
commit | 9599eb29e3774af2d41ef2145912270266308b71 (patch) | |
tree | d189908f13d386528c94aab2892bbc48ea1f8a6f /alot/commands/globals.py | |
parent | 33fb2b66ec1fcb22114fd7a424f42eb081f0eae6 (diff) |
alot: replace email.Utils with email.utils
In python 3 email.Utils doesn't exist, in python 2.7 both do, but Utils
is deprecated.
Diffstat (limited to 'alot/commands/globals.py')
-rw-r--r-- | alot/commands/globals.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/commands/globals.py b/alot/commands/globals.py index dd04d529..5f9faa3d 100644 --- a/alot/commands/globals.py +++ b/alot/commands/globals.py @@ -821,7 +821,7 @@ class ComposeCommand(Command): # find out the right account sender = self.envelope.get('From') - name, addr = email.Utils.parseaddr(sender) + name, addr = email.utils.parseaddr(sender) account = settings.get_account_by_address(addr) if account is None: accounts = settings.get_accounts() |