aboutsummaryrefslogtreecommitdiff
path: root/src/mailman_pgp/commands/eml_key.py
diff options
context:
space:
mode:
authorJ08nY2017-08-03 02:50:19 +0200
committerJ08nY2017-08-03 02:50:19 +0200
commit66f1510d1a38c10944a13665e1b7f9ecb14a8d8f (patch)
tree4acb1299d2f4359c3541d3a4c3318c9b1109b575 /src/mailman_pgp/commands/eml_key.py
parent5a79bd6c406816ff36e8bdbdb8e516c8e7d8f371 (diff)
downloadmailman-pgp-66f1510d1a38c10944a13665e1b7f9ecb14a8d8f.tar.gz
mailman-pgp-66f1510d1a38c10944a13665e1b7f9ecb14a8d8f.tar.zst
mailman-pgp-66f1510d1a38c10944a13665e1b7f9ecb14a8d8f.zip
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)