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.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/alot/commands/thread.py b/alot/commands/thread.py
index 0c8c64f9..1d39fc4d 100644
--- a/alot/commands/thread.py
+++ b/alot/commands/thread.py
@@ -242,8 +242,10 @@ class ReplyCommand(Command):
envelope.add('References', '<%s>' % self.message.get_message_id())
# continue to compose
+ encrypt = mail.get_content_subtype() == 'encrypted'
ui.apply_command(ComposeCommand(envelope=envelope,
- spawn=self.force_spawn))
+ spawn=self.force_spawn,
+ encrypt=encrypt))
def clear_my_address(self, my_addresses, value):
"""return recipient header without the addresses in my_addresses"""