From 1e346cac12fdce13a6fe1aec790ebb5ee1c5651e Mon Sep 17 00:00:00 2001 From: Lucas Hoffmann Date: Fri, 14 Dec 2018 18:17:03 +0100 Subject: Set local variable before useage Fixes #1351. --- alot/commands/globals.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'alot/commands/globals.py') diff --git a/alot/commands/globals.py b/alot/commands/globals.py index a3435742..cd2e9512 100644 --- a/alot/commands/globals.py +++ b/alot/commands/globals.py @@ -856,6 +856,8 @@ class ComposeCommand(Command): ui.senderhistory.append(fromaddress) self.envelope.add('From', fromaddress) + else: + fromaddress = self.envelope.get("From") # try to find the account again if account is None: -- cgit v1.2.3