aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Utils.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Mailman/Utils.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Mailman/Utils.py b/Mailman/Utils.py
index eab085a8..8290bf14 100644
--- a/Mailman/Utils.py
+++ b/Mailman/Utils.py
@@ -1068,7 +1068,7 @@ def suspiciousHTML(html):
# This takes an email address, and returns True if DMARC policy is p=reject
# or possibly quarantine.
-def IsDMARCProhibited(email):
+def IsDMARCProhibited(mlist, email):
if not dns_resolver:
return False
@@ -1142,7 +1142,7 @@ def IsDMARCProhibited(email):
email, dmarc_domain, name, entry)
return True
- if (mm_cfg.DMARC_QUARANTINE_MODERATION_ACTION and
+ if (mlist.dmarc_quarantine_moderation_action and
re.search(r'\bp=quarantine\b', entry, re.IGNORECASE)):
syslog('vette',
'DMARC lookup for %s (%s) found p=quarantine in %s = %s',
@@ -1151,4 +1151,3 @@ def IsDMARCProhibited(email):
return False
-