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.py3
1 files changed, 2 insertions, 1 deletions
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: