summaryrefslogtreecommitdiff
path: root/mailman/pipeline/cleanse_dkim.py
diff options
context:
space:
mode:
Diffstat (limited to 'mailman/pipeline/cleanse_dkim.py')
-rw-r--r--mailman/pipeline/cleanse_dkim.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/mailman/pipeline/cleanse_dkim.py b/mailman/pipeline/cleanse_dkim.py
index bd7de83dc..d4d8f38ae 100644
--- a/mailman/pipeline/cleanse_dkim.py
+++ b/mailman/pipeline/cleanse_dkim.py
@@ -26,12 +26,14 @@ originating at the Mailman server for the outgoing message.
"""
__metaclass__ = type
-__all__ = ['CleanseDKIM']
+__all__ = [
+ 'CleanseDKIM',
+ ]
+from lazr.config import as_boolean
from zope.interface import implements
-from mailman import Defaults
from mailman.i18n import _
from mailman.interfaces.handler import IHandler
@@ -47,7 +49,7 @@ class CleanseDKIM:
def process(self, mlist, msg, msgdata):
"""See `IHandler`."""
- if Defaults.REMOVE_DKIM_HEADERS:
+ if as_boolean(config.mta.remove_dkim_headers):
del msg['domainkey-signature']
del msg['dkim-signature']
del msg['authentication-results']