summaryrefslogtreecommitdiff
path: root/Mailman/Handlers/CalcRecips.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman/Handlers/CalcRecips.py')
-rw-r--r--Mailman/Handlers/CalcRecips.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/Mailman/Handlers/CalcRecips.py b/Mailman/Handlers/CalcRecips.py
index c903ff8cc..4c925c810 100644
--- a/Mailman/Handlers/CalcRecips.py
+++ b/Mailman/Handlers/CalcRecips.py
@@ -59,8 +59,9 @@ def process(mlist, msg, msgdata):
return
# Should the original sender should be included in the recipients list?
include_sender = 1
+ sender = msg.get_sender()
try:
- if mlist.getMemberOption(msg.get_sender(), mm_cfg.DontReceiveOwnPosts):
+ if mlist.getMemberOption(sender, mm_cfg.DontReceiveOwnPosts):
include_sender = 0
except Errors.NotAMemberError:
pass
@@ -75,8 +76,8 @@ def process(mlist, msg, msgdata):
if mlist.Authenticate((mm_cfg.AuthListModerator,
mm_cfg.AuthListAdmin),
password):
- recips = mlist.GetDeliveryMembers() + \
- mlist.GetDigestDeliveryMembers()
+ recips = mlist.getMemberCPAddresses(mlist.getRegularMemberKeys() +
+ mlist.getDigestMemberKeys())
msgdata['recips'] = recips
return
else: