summaryrefslogtreecommitdiff
path: root/alot/commands/globals.py
diff options
context:
space:
mode:
Diffstat (limited to 'alot/commands/globals.py')
-rw-r--r--alot/commands/globals.py3
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()