[CVS] CVSROOT newsyncmail,1.6,1.7
Update of /cvsroot/l10n-russian/CVSROOT
In directory haydn:/tmp/cvs-serv32657
Modified Files:
newsyncmail
Log Message:
Let's try some error checking...
Index: newsyncmail
===================================================================
RCS file: /cvsroot/l10n-russian/CVSROOT/newsyncmail,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- newsyncmail 14 Mar 2004 18:41:50 -0000 1.6
+++ newsyncmail 14 Mar 2004 19:10:52 -0000 1.7
@@ -286,7 +286,15 @@
resp = conn.sendmail(author, people, s.getvalue())
conn.close()
else:
- os.popen("/usr/sbin/sendmail -t",'w').write(s.getvalue())
+ (in,ou,er) = os.popen3("/usr/sbin/sendmail -t",'w')
+ in.write(s.getvalue())
+ output = ou.read()
+ error = er.read()
+ print output
+ print error
+ in.close()
+ ou.close()
+ er.close()
#conn.close()
os._exit(0)
Reply to: