aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Handlers
diff options
context:
space:
mode:
authorMark Sapiro <msapiro@value.net>2012-03-25 13:45:51 -0700
committerMark Sapiro <msapiro@value.net>2012-03-25 13:45:51 -0700
commit097ad5a0a6a1df417b6129a7992a353467367600 (patch)
treebacd4621e6a1cc844f812117dd6b7ac1c01f040b /Mailman/Handlers
parentfbf25ca208265ed0b2a39aa29a198e2ca180eeeb (diff)
downloadmailman2-097ad5a0a6a1df417b6129a7992a353467367600.tar.gz
mailman2-097ad5a0a6a1df417b6129a7992a353467367600.tar.xz
mailman2-097ad5a0a6a1df417b6129a7992a353467367600.zip
Backported regular_exclude_ignore list attribute feature from 2.2 branch.
Diffstat (limited to 'Mailman/Handlers')
-rw-r--r--Mailman/Handlers/CalcRecips.py6
1 files changed, 6 insertions, 0 deletions
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])