diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-03-16 22:03:19 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-03-16 22:03:19 +0100 |
commit | 308737dac08a5fe9ae7e8c290939e57261c4a081 (patch) | |
tree | 2dd847a3e61aea0e7853c43506218b4bb8dcd350 | |
parent | 0ec4ea39648f5ff74602c67cfb6e18334a15da27 (diff) |
commands/thread: use MimeTree properties instead of accessing email directly
-rw-r--r-- | alot/commands/thread.py | 3 |
1 files changed, 1 insertions, 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=[ |