summaryrefslogtreecommitdiff
path: root/Mailman/Deliverer.py
diff options
context:
space:
mode:
authorbwarsaw1998-12-18 05:16:21 +0000
committerbwarsaw1998-12-18 05:16:21 +0000
commit46c9cc32fb376ffbd61c66d3296251f35ca9a6eb (patch)
treed751ea62869160cfbb81ac3cd580793c3af05d27 /Mailman/Deliverer.py
parentbb33f15b3902e04e62762ca662849338f3cf26b2 (diff)
downloadmailman-46c9cc32fb376ffbd61c66d3296251f35ca9a6eb.tar.gz
mailman-46c9cc32fb376ffbd61c66d3296251f35ca9a6eb.tar.zst
mailman-46c9cc32fb376ffbd61c66d3296251f35ca9a6eb.zip
Diffstat (limited to 'Mailman/Deliverer.py')
-rw-r--r--Mailman/Deliverer.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/Mailman/Deliverer.py b/Mailman/Deliverer.py
index dd468abda..0754977d5 100644
--- a/Mailman/Deliverer.py
+++ b/Mailman/Deliverer.py
@@ -94,9 +94,9 @@ class Deliverer:
cmdproc.write(self.QuotePeriods(msg.body))
status = cmdproc.close()
if status:
- sys.stderr.write('Non-zero exit status: %d'
- '\nCommand: %s' % ((status >> 8), cmd))
-
+ self.LogMsg('deliverer',
+ 'Non-zero exit status: %d\nCommand: %s'
+ (status >> 8), cmd)
def DeliverToList(self, msg, recipients,
header="", footer="", remove_to=0, tmpfile_prefix = ""):
@@ -136,10 +136,10 @@ class Deliverer:
cmdproc.write(footer)
status = cmdproc.close()
-
if status:
- sys.stderr.write('Non-zero exit status: %d'
- '\nCommand: %s' % ((status >> 8), cmd))
+ self.LogMsg('deliverer',
+ 'Non-zero exit status: %d\nCommand: %s',
+ (status >> 8), cmd)
def SendPostAck(self, msg, sender):
subject = msg.getheader('subject')