From dd60f2ecbe558000268076a9de4eb474d365a0a5 Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Wed, 19 Dec 2001 07:01:06 +0000 Subject: process(): Use getDeliveryStatus(). --- Mailman/Handlers/CalcRecips.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Mailman/Handlers/CalcRecips.py b/Mailman/Handlers/CalcRecips.py index 1dcd75c67..7e606f90d 100644 --- a/Mailman/Handlers/CalcRecips.py +++ b/Mailman/Handlers/CalcRecips.py @@ -26,6 +26,7 @@ from Mailman import mm_cfg from Mailman import Utils from Mailman import Message from Mailman import Errors +from Mailman.MemberAdaptor import ENABLED from Mailman.i18n import _ from Mailman.Logging.Syslog import syslog @@ -72,7 +73,7 @@ delivery. The original message as received by Mailman is attached. # Calculate the regular recipients of the message recips = [mlist.getMemberCPAddress(m) for m in mlist.getRegularMemberKeys() - if not mlist.getMemberOption(m, mm_cfg.DisableDelivery)] + if mlist.getDeliveryStatus(m) == ENABLED] # Remove the sender if they don't want to receive their own posts if not include_sender: try: -- cgit v1.3.1