summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Mailman/Handlers/Sendmail.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Mailman/Handlers/Sendmail.py b/Mailman/Handlers/Sendmail.py
index 2b70f2094..3fe3c6cfa 100644
--- a/Mailman/Handlers/Sendmail.py
+++ b/Mailman/Handlers/Sendmail.py
@@ -52,6 +52,9 @@ def process(mlist, msg):
program.
"""
+ if msg.recips == 0:
+ # nothing to do!
+ return
# Use -f to set the envelope sender
cmd = mm_cfg.SENDMAIL_CMD + ' -f ' + msg.GetSender() + ' '
# make sure the command line is of a manageable size