[svnbook commit] r2774 - trunk/src/tools
maxb
noreply at red-bean.com
Wed Apr 4 17:21:22 CDT 2007
Author: maxb
Date: Wed Apr 4 17:21:20 2007
New Revision: 2774
Log:
Fix failure to send mail due to minimal PATH under cron.
Also improve stderr output in failure case.
Modified:
trunk/src/tools/build-nightlies
Modified: trunk/src/tools/build-nightlies
==============================================================================
--- trunk/src/tools/build-nightlies (original)
+++ trunk/src/tools/build-nightlies Wed Apr 4 17:21:20 2007
@@ -29,7 +29,7 @@
def sendmail(subject, body):
try:
outerrfp, infp = popen2.popen4(
- ['sendmail', '-f', MAIL_SENDER, MAIL_DESTINATION])
+ ['/usr/sbin/sendmail', '-f', MAIL_SENDER, MAIL_DESTINATION])
infp.write("Subject: %s\n" % subject)
infp.write("To: %s\n" % MAIL_DESTINATION)
@@ -45,6 +45,9 @@
etype, value, tb = sys.exc_info()
sys.stderr.write("Failed sending email (%s):\n" % subject)
traceback.print_exception(etype, value, tb)
+ sys.stderr.write("\n")
+ sys.stderr.write("Email body:\n")
+ sys.stderr.write(body)
if len(sys.argv) < 3:
More information about the svnbook-dev
mailing list