summaryrefslogtreecommitdiff
path: root/src/mailman_pgp/commands/eml_key.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman_pgp/commands/eml_key.py')
-rw-r--r--src/mailman_pgp/commands/eml_key.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/mailman_pgp/commands/eml_key.py b/src/mailman_pgp/commands/eml_key.py
index 9a64fc7..2bc00c7 100644
--- a/src/mailman_pgp/commands/eml_key.py
+++ b/src/mailman_pgp/commands/eml_key.py
@@ -253,6 +253,16 @@ def _cmd_change(pgp_list, mlist, msg, msgdata, arguments, results):
def _cmd_revoke(pgp_list, mlist, msg, msgdata, arguments, results):
+ """
+ `key revoke` command.
+
+ Used when a user has to revoke a part of a key used for a `PGPAddress`.
+
+ * This command message CAN be encrypted to the list key, in which case it
+ will be decrypted.
+ * This command message MUST have at least one revocation certificate
+ attached.
+ """
if len(arguments) != 1:
print('Extraneous argument/s: ' + ','.join(arguments[1:]),
file=results)
@@ -260,7 +270,7 @@ def _cmd_revoke(pgp_list, mlist, msg, msgdata, arguments, results):
email = get_email(msg)
if not email:
- print('No email to change key of.', file=results)
+ print('No email to revoke key of.', file=results)
return ContinueProcessing.no
pgp_address = PGPAddress.for_email(email)