summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-05-15 19:34:14 +0200
committerAnton Khirnov <anton@khirnov.net>2021-05-15 19:34:14 +0200
commitf1c576ea2fdec530c28aa503c0c76080afede029 (patch)
tree282f8ed4b4b4757417f0d979f20d9f79a25a88e1
parent2f38333f8e8ddb817e752389f6d5b688d79edb33 (diff)
commands/thread:ForwardCommand: use the message headers object
-rw-r--r--alot/commands/thread.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/commands/thread.py b/alot/commands/thread.py
index d0926692..e71bb588 100644
--- a/alot/commands/thread.py
+++ b/alot/commands/thread.py
@@ -360,7 +360,7 @@ class ForwardCommand(Command):
envelope.attach(a)
# copy subject
- subject = mail.get('Subject', '')
+ subject = message.headers.get('Subject') or ''
subject = 'Fwd: ' + subject
forward_subject_hook = settings.get_hook('forward_subject')
if forward_subject_hook: