diff options
author | vrs <none> | 2018-12-08 22:20:05 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2018-12-10 10:25:49 +0000 |
commit | b981bfe0c61d9aa55652b4b0a01b846aaa9c993a (patch) | |
tree | b16298ac338ef19758af553b845ddc05b6124fc1 /alot/commands/thread.py | |
parent | fdac378674a3e90413fcfba3dd2c9cc0debbb9cc (diff) |
attach accounts to envelopes
simplifies a few tests, fixes #1177
Diffstat (limited to 'alot/commands/thread.py')
-rw-r--r-- | alot/commands/thread.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/alot/commands/thread.py b/alot/commands/thread.py index 9a0ad474..f68e5405 100644 --- a/alot/commands/thread.py +++ b/alot/commands/thread.py @@ -190,11 +190,12 @@ class ReplyCommand(Command): # set From-header and sending account try: - from_header, _ = determine_sender(mail, 'reply') + from_header, account = determine_sender(mail, 'reply') except AssertionError as e: ui.notify(str(e), priority='error') return envelope.add('From', from_header) + envelope.account = account # set To sender = mail['Reply-To'] or mail['From'] @@ -399,11 +400,12 @@ class ForwardCommand(Command): # set From-header and sending account try: - from_header, _ = determine_sender(mail, 'reply') + from_header, account = determine_sender(mail, 'reply') except AssertionError as e: ui.notify(str(e), priority='error') return envelope.add('From', from_header) + envelope.account = account # continue to compose await ui.apply_command(ComposeCommand(envelope=envelope, |