summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--alot/commands/thread.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/alot/commands/thread.py b/alot/commands/thread.py
index e71bb588..87deab92 100644
--- a/alot/commands/thread.py
+++ b/alot/commands/thread.py
@@ -324,8 +324,6 @@ class ForwardCommand(Command):
async def apply(self, ui):
message = ui.current_buffer.get_selected_message()
- mail = email.message_from_bytes(message.as_bytes(),
- policy = email.policy.SMTP)
envelope = Envelope(passed = message)
@@ -336,6 +334,8 @@ class ForwardCommand(Command):
qf = settings.get_hook('forward_prefix')
if qf:
+ mail = email.message_from_bytes(message.as_bytes(),
+ policy = email.policy.SMTP)
quote = qf(name, address, timestamp,
message=mail, ui=ui, dbm=ui.dbman)
else: