summaryrefslogtreecommitdiff
path: root/alot/commands/envelope.py
diff options
context:
space:
mode:
Diffstat (limited to 'alot/commands/envelope.py')
-rw-r--r--alot/commands/envelope.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/alot/commands/envelope.py b/alot/commands/envelope.py
index a9cfac74..0294dc01 100644
--- a/alot/commands/envelope.py
+++ b/alot/commands/envelope.py
@@ -505,8 +505,8 @@ class SignCommand(Command):
return
else:
try:
- acc = settings.get_account_by_address(
- envelope.headers['From'][0])
+ _, addr = email.utils.parseaddr(envelope.headers['From'][0])
+ acc = settings.get_account_by_address(addr)
except NoMatchingAccount:
envelope.sign = False
ui.notify('Unable to find a matching account',