summaryrefslogtreecommitdiff
path: root/Mailman/Handlers/CalcRecips.py
diff options
context:
space:
mode:
authorbwarsaw1999-11-16 04:18:34 +0000
committerbwarsaw1999-11-16 04:18:34 +0000
commit7d20a6702f4b9dffe9b9a71ee53763075d86c588 (patch)
treed68aad578d887e8a8131d0761bd82182280ed1a8 /Mailman/Handlers/CalcRecips.py
parentdd07bed2ad90cc6fe8672b46f080ac80271bb0cc (diff)
downloadmailman-7d20a6702f4b9dffe9b9a71ee53763075d86c588.tar.gz
mailman-7d20a6702f4b9dffe9b9a71ee53763075d86c588.tar.zst
mailman-7d20a6702f4b9dffe9b9a71ee53763075d86c588.zip
Diffstat (limited to 'Mailman/Handlers/CalcRecips.py')
-rw-r--r--Mailman/Handlers/CalcRecips.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Mailman/Handlers/CalcRecips.py b/Mailman/Handlers/CalcRecips.py
index 83f5a2e69..860f3afbe 100644
--- a/Mailman/Handlers/CalcRecips.py
+++ b/Mailman/Handlers/CalcRecips.py
@@ -28,6 +28,10 @@ from Mailman import mm_cfg
def process(mlist, msg):
+ # yes, short circuit if the message object already has a recipients
+ # attribute, regardless of whether the list is empty or not.
+ if hasattr(msg, 'recips'):
+ return
dont_send_to_sender = 0
# Get the membership address of the sender, if a member. Then get the
# sender's receive-own-posts option