[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

post-commit email hook problem with mailer.py

From: David Koontz <dkoontz_at_mailblocks.com>
Date: 2004-12-28 00:51:19 CET

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

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.