diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2018-06-21 11:04:40 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2018-06-21 11:40:02 +0100 |
commit | 43e370fa92dfc7c0977c311e0d71e9e57f3ea575 (patch) | |
tree | 41477b1abeff702f27e02b02dfad292b6dd8413f /alot/commands/envelope.py | |
parent | c30afc72150e30770da6fc1e5f6e68dce2b9a6bb (diff) |
rename function that updates gpg keys in envelopes
Diffstat (limited to 'alot/commands/envelope.py')
-rw-r--r-- | alot/commands/envelope.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/alot/commands/envelope.py b/alot/commands/envelope.py index 535ce06c..4b02e67e 100644 --- a/alot/commands/envelope.py +++ b/alot/commands/envelope.py @@ -428,7 +428,7 @@ class SetCommand(Command): # as the key of the person BCC'd will be available to other recievers, # defeating the purpose of BCCing them if self.key.lower() in ['to', 'from', 'cc']: - yield utils.set_encrypt(ui, ui.current_buffer.envelope) + yield utils.update_keys(ui, ui.current_buffer.envelope) ui.current_buffer.rebuild() @@ -452,7 +452,7 @@ class UnsetCommand(Command): # as the key of the person BCC'd will be available to other recievers, # defeating the purpose of BCCing them if self.key.lower() in ['to', 'from', 'cc']: - yield utils.set_encrypt(ui, ui.current_buffer.envelope) + yield utils.update_keys(ui, ui.current_buffer.envelope) ui.current_buffer.rebuild() @@ -603,7 +603,7 @@ class EncryptCommand(Command): tmp_key = crypto.get_key(keyid) envelope.encrypt_keys[tmp_key.fpr] = tmp_key else: - yield utils.set_encrypt(ui, envelope, signed_only=self.trusted) + yield utils.update_keys(ui, envelope, signed_only=self.trusted) envelope.encrypt = encrypt if not envelope.encrypt: # This is an extra conditional as it can even happen if encrypt is |