aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJ08nY2017-06-18 02:31:26 +0200
committerJ08nY2017-06-18 02:31:26 +0200
commitf73080fec0def40cf97c0b4aaaf678c0489ba61c (patch)
treeafaf50ab12df262e8db578aedb9d7dac3a3816f2 /src
parent84292d11348cf0611bc0e363ebeba0bb383f0e11 (diff)
downloadmailman-pgp-f73080fec0def40cf97c0b4aaaf678c0489ba61c.tar.gz
mailman-pgp-f73080fec0def40cf97c0b4aaaf678c0489ba61c.tar.zst
mailman-pgp-f73080fec0def40cf97c0b4aaaf678c0489ba61c.zip
Diffstat (limited to 'src')
-rw-r--r--src/mailman_pgp/plugin.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mailman_pgp/plugin.py b/src/mailman_pgp/plugin.py
index 5245a95..d87911b 100644
--- a/src/mailman_pgp/plugin.py
+++ b/src/mailman_pgp/plugin.py
@@ -36,5 +36,7 @@ def on_delete(mlist):
list_id=mlist.list_id).first()
if encrypted_list:
with transaction():
+ config.gpg.delete_keys(encrypted_list.key_fingerprint,
+ secret=True,
+ subkeys=True)
config.db.session.delete(encrypted_list)
- # TODO delete the keypairs here