repo-scripts/mailer.py
twittner
cvs at pld-linux.org
Thu Sep 7 19:16:39 CEST 2006
Author: twittner
Date: Thu Sep 7 19:16:37 2006
New Revision: 7723
Modified:
repo-scripts/mailer.py
Log:
- limit commitlogs to 500 lines
- add -i to sendmail invokation
Modified: repo-scripts/mailer.py
==============================================================================
--- repo-scripts/mailer.py (original)
+++ repo-scripts/mailer.py Thu Sep 7 19:16:37 2006
@@ -201,7 +201,7 @@
def run_diff(self, cmd):
# we're holding everything in memory, so we may as well read the
# entire diff into memory and stash that into the buffer
- pipe_ob = popen2.Popen3(cmd)
+ pipe_ob = popen2.Popen3(string.join(cmd) + '|/usr/bin/head -n500')
self.write(pipe_ob.fromchild.read())
# wait on the child so we don't end up with a billion zombies
@@ -268,7 +268,7 @@
### gotta fix this. this is pretty specific to sendmail and qmail's
### mailwrapper program. should be able to use option param substitution
- cmd = self.cmd + [ '-f', self.from_addr, self.to_addr ]
+ cmd = self.cmd + [ '-f, '-i', self.from_addr, self.to_addr ]
# construct the pipe for talking to the mailer
self.pipe = popen2.Popen3(cmd)
More information about the pld-cvs-commit
mailing list