From f1c576ea2fdec530c28aa503c0c76080afede029 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sat, 15 May 2021 19:34:14 +0200 Subject: commands/thread:ForwardCommand: use the message headers object --- alot/commands/thread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3