diff options
Diffstat (limited to 'alot')
-rw-r--r-- | alot/commands/envelope.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/alot/commands/envelope.py b/alot/commands/envelope.py index cc549953..45ede761 100644 --- a/alot/commands/envelope.py +++ b/alot/commands/envelope.py @@ -488,6 +488,8 @@ class EncryptCommand(Command): if e.code == gpgme.ERR_INV_VALUE: raise GPGProblem("Can not find key to remove.") raise GPGProblem(str(e)) + if not envelope.encrypt_keys: + envelope.encrypt = False ui.current_buffer.rebuild() return elif self.action == 'encrypt': |