aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Handlers
diff options
context:
space:
mode:
authorjimpop@template.hostname <>2015-11-04 21:09:42 +0000
committerjimpop@template.hostname <>2015-11-04 21:09:42 +0000
commit6bd19f91b98517af02a3dae766d49c1610967815 (patch)
tree901bfb1bc108065bda4fb0f8931274c1124edd62 /Mailman/Handlers
parent2b8a93aad055efe7754ee3f1c93afd588b1d53ff (diff)
downloadmailman2-6bd19f91b98517af02a3dae766d49c1610967815.tar.gz
mailman2-6bd19f91b98517af02a3dae766d49c1610967815.tar.xz
mailman2-6bd19f91b98517af02a3dae766d49c1610967815.zip
Auto-Moderate Verbose Members
Diffstat (limited to 'Mailman/Handlers')
-rw-r--r--Mailman/Handlers/SpamDetect.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Mailman/Handlers/SpamDetect.py b/Mailman/Handlers/SpamDetect.py
index d85cc6a6..6c10bb65 100644
--- a/Mailman/Handlers/SpamDetect.py
+++ b/Mailman/Handlers/SpamDetect.py
@@ -122,6 +122,12 @@ error, contact the mailing list owner at %(listowner)s."""))
raise Errors.RejectMessage, text
elif mlist.dmarc_moderation_action == 4:
raise Errors.DiscardMessage
+
+ if Utils.IsVerboseMember(mlist, addr):
+ mlist.setMemberOption(addr, mm_cfg.Moderate, 1)
+ syslog('vette', '%s: Automatically Moderated %s for verbose postings.',
+ mlist.real_name, addr)
+
if msgdata.get('approved'):
return
# First do site hard coded header spam checks
@@ -169,3 +175,5 @@ error, contact the mailing list owner at %(listowner)s."""))
hold_for_approval(mlist, msg, msgdata, HeaderMatchHold)
if action == mm_cfg.ACCEPT:
return
+
+