From 097ad5a0a6a1df417b6129a7992a353467367600 Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Sun, 25 Mar 2012 13:45:51 -0700 Subject: Backported regular_exclude_ignore list attribute feature from 2.2 branch. --- Mailman/Handlers/CalcRecips.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Mailman/Handlers/CalcRecips.py') diff --git a/Mailman/Handlers/CalcRecips.py b/Mailman/Handlers/CalcRecips.py index db10c432..39fe0671 100644 --- a/Mailman/Handlers/CalcRecips.py +++ b/Mailman/Handlers/CalcRecips.py @@ -179,6 +179,12 @@ def do_exclude(mlist, msg, msgdata, recips): syslog('error', 'Exclude list %s is not in the same domain.', listname) continue + if mlist.regular_exclude_ignore: + for sender in msg.get_senders(): + if slist.isMember(sender): + break + else: + continue srecips = set([slist.getMemberCPAddress(m) for m in slist.getRegularMemberKeys() if slist.getDeliveryStatus(m) == ENABLED]) -- cgit v1.2.3