Commit 7a9c5be1 authored by Fardale's avatar Fardale

[spamassassin_crans.py] fix temporaire

parent 957088ec
......@@ -28,7 +28,7 @@ from Mailman import mm_cfg
from Mailman import Errors
from Mailman.Logging.Syslog import syslog
from Mailman.Handlers import Hold
from Mailman.Handlers.Moderate import matches_p
#from Mailman.Handlers.Moderate import matches_p
SPAMD_HOST = getattr(mm_cfg, 'SPAMASSASSIN_HOST', '')
DISCARD_SCORE = getattr(mm_cfg, 'SPAMASSASSIN_DISCARD_SCORE', 10)
......@@ -91,7 +91,8 @@ def process(mlist, msg, msgdata):
if MEMBER_BONUS_LIST != 0:
for sender in msg.get_senders():
if mlist.isMember(sender) or \
matches_p(sender, mlist.accept_these_nonmembers, mlist.internal_name()):
mlist.GetPattern(sender, mlist.accept_these_nonmembers, at_list='accept_these_nonmembers'):
#matches_p(sender, mlist.accept_these_nonmembers, mlist.internal_name()):
score -= MEMBER_BONUS_LIST
break
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment