aboutsummaryrefslogtreecommitdiff
path: root/src/mailman_pgp/rules/signature.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman_pgp/rules/signature.py')
-rw-r--r--src/mailman_pgp/rules/signature.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mailman_pgp/rules/signature.py b/src/mailman_pgp/rules/signature.py
index ae27bb5..2e1728b 100644
--- a/src/mailman_pgp/rules/signature.py
+++ b/src/mailman_pgp/rules/signature.py
@@ -28,6 +28,7 @@ from zope.component import getUtility
from zope.event import classhandler
from zope.interface import implementer
+from mailman_pgp.config import config
from mailman_pgp.database import transaction
from mailman_pgp.model.address import PGPAddress
from mailman_pgp.model.list import PGPMailingList
@@ -133,9 +134,6 @@ class Signature:
return True
msgdata['pgp_sig_hashes'] = sig_hashes
- # XXX: we need to track key revocation separately to use it here
- # TODO: check key revocation here
-
return False
@@ -147,6 +145,8 @@ def on_message_posting(event):
:param event:
:type event: AcceptEvent
"""
+ if not config.get_value('misc', 'collect_sig_hashes'):
+ return
pgp_list = PGPMailingList.for_list(event.mlist)
if pgp_list is None:
return