diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2018-07-25 09:20:07 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-25 09:20:07 -0700 |
commit | ce7bda011f1e0efe2edc8eb04311ca6bc384989f (patch) | |
tree | 0f79a9282902b8c14faf7fe2400ff32adfade477 /alot/commands/globals.py | |
parent | 4cba47a8143059a68c904e40e575fc4d493bf6de (diff) | |
parent | 6f16c8f4c985ed0b31fd5998749c09a6982c3e54 (diff) |
Merge pull request #1278 from dcbaker/fix-1277
commands/globals: Convert Address to string for email.utils
Diffstat (limited to 'alot/commands/globals.py')
-rw-r--r-- | alot/commands/globals.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/alot/commands/globals.py b/alot/commands/globals.py index 0f1d6e26..9ebf2859 100644 --- a/alot/commands/globals.py +++ b/alot/commands/globals.py @@ -818,7 +818,8 @@ class ComposeCommand(Command): accounts = settings.get_accounts() if len(accounts) == 1: a = accounts[0] - fromstring = email.utils.formataddr((a.realname, a.address)) + fromstring = email.utils.formataddr( + (a.realname, str(a.address))) self.envelope.add('From', fromstring) else: cmpl = AccountCompleter() |