diff options
author | Lucas Hoffmann <l-m-h@web.de> | 2016-03-24 18:12:30 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2016-03-24 21:01:43 +0000 |
commit | 39e4208cd8a677d986cf9489769e19bccec30c8b (patch) | |
tree | 01ecf123b2e316e67fae885c4a2f70ef4c5e5116 /alot | |
parent | f1f416d39f622ab43c18a44f84849a5ec51c3d34 (diff) |
Remove encryption keys from envelope if encryption flag is unset.
Diffstat (limited to 'alot')
-rw-r--r-- | alot/commands/envelope.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/alot/commands/envelope.py b/alot/commands/envelope.py index 7d32ca8d..c8362037 100644 --- a/alot/commands/envelope.py +++ b/alot/commands/envelope.py @@ -575,5 +575,9 @@ class EncryptCommand(Command): envelope.encrypt_keys.update(keys) else: envelope.encrypt = False + if not envelope.encrypt: + # This is an extra conditional as it can even happen if encrypt is + # True. + envelope.encrypt_keys = {} # reload buffer ui.current_buffer.rebuild() |