I have a working subversion repository that I've been using for quite
some time now and I wanted to add email notification to the post-commit
action. I copied the post-commit.tmpl file and copied the mailer.py
and mailer.conf files from the source distribution to my hooks
directory. My post-commit looks like this:
#!/bin/sh
REPOS="$1"
REV="$2"
mailer.py commit "$REPOS" "$REV" mailer.conf
In my mailer.conf I have set up my smtp host for my ISP and verified
that the diff = line is pointing to where my "diff" program is. I
tried setting the "mail_command =" line and commenting it out, no
activity either way. I have a single address for the "to_addr=" line.
I get no emails or errors in my log files. I saw the suggestion of
captureing stdout and stderr in the post-commit file with the line
mailer.py commit "$REPOS" "$REV" mailer.conf &>
/data/dev/svn/palabra/hooks/log.txt
That also did nothing so I removed the "&>
/data/dev/svn/palabra/hooks/log.txt". I am pretty stumped on why I'm
not getting any emails. I didn't think the python script was using
sendmail but I made sure it is running and able to forward an email to
the same address I have set up in mailer.conf.
TIA,
David
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Dec 28 00:53:27 2004