diff options
author | Lucas Hoffmann <lucc@posteo.de> | 2018-12-14 18:17:03 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2018-12-14 22:01:44 +0000 |
commit | 1e346cac12fdce13a6fe1aec790ebb5ee1c5651e (patch) | |
tree | 8e71e50196627eff02aa003c271387bf396a61f5 /alot/commands/globals.py | |
parent | a5d956afcdb01f762ceb36943b4416d09aa8638a (diff) |
Set local variable before useage
Fixes #1351.
Diffstat (limited to 'alot/commands/globals.py')
-rw-r--r-- | alot/commands/globals.py | 2 |
1 files changed, 2 insertions, 0 deletions
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: |