summaryrefslogtreecommitdiff
path: root/alot/commands/thread.py
diff options
context:
space:
mode:
Diffstat (limited to 'alot/commands/thread.py')
-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 aba49eae..b00cbd68 100644
--- a/alot/commands/thread.py
+++ b/alot/commands/thread.py
@@ -178,7 +178,7 @@ class ReplyCommand(Command):
envelope = Envelope(bodytext = mailcontent, replied = message)
# copy subject
- subject = mail.get('Subject', '')
+ subject = message.headers.get('Subject') or ''
reply_subject_hook = settings.get_hook('reply_subject')
if reply_subject_hook:
subject = reply_subject_hook(subject)