From 308737dac08a5fe9ae7e8c290939e57261c4a081 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 16 Mar 2021 22:03:19 +0100 Subject: commands/thread: use MimeTree properties instead of accessing email directly --- alot/commands/thread.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/alot/commands/thread.py b/alot/commands/thread.py index e311b335..aba49eae 100644 --- a/alot/commands/thread.py +++ b/alot/commands/thread.py @@ -296,10 +296,9 @@ class ReplyCommand(Command): envelope.add('References', '<%s>' % message.id) # continue to compose - encrypt = mail.get_content_subtype() == 'encrypted' await ui.apply_command(ComposeCommand(envelope=envelope, spawn=self.force_spawn, - encrypt=encrypt)) + encrypt = message.body.is_encrypted)) @registerCommand(MODE, 'forward', arguments=[ -- cgit v1.2.3