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

mailer.py question

From: Jeroen Ruigrok/asmodai <asmodai_at_wxs.nl>
Date: 2003-12-12 00:03:48 CET

I am trying to iron out the last glitch in my mailer.conf.

I have this in post-commit:

PATH=/bin:/usr/bin:/usr/local/bin; export PATH
REPOS="$1"
REV="$2"

$REPOS/hooks/mailer.py "$REPOS" "$REV"

in mailer.conf:

[general]
diff = /usr/bin/diff -u -L %(label_from)s -L %(label_to)s %(from)s %(to)s
mail_command = /usr/local/sbin/sendmail
smtp_hostname = localhost
[defaults]
from_addr = svn-admin@buddha.tendra.org
to_addr = asmodai@ninth-circle.org
reply_to =
suppress_deletes = yes
suppress_adds = yes
for_repos = .*/svn/(?P<project>[^/]*)($|/)
to_addr = asmodai@tendra.org

The above works as expected and asmodai@tendra.org gets all the email of
every commit. Now I wanted to use the dict replacing:

to_addr = %(project)s@tendra.org

And Python craps out.

I am sure to be doing something wrong, but I cannot say I find
mailer.conf to be clear. I am sure that someone totally into Subversion
can easily make head or tails of the comments inside mailer.conf, but it
confuses me on each subsequent reading of it.

What use are the groups you can apparently define?

Putting something like [blah] above for_repos will always send email to
the ninth-circle.org address.

Also, suppress_adds=yes seems to still include a diff. At least on my
0.32.1 installation.

Any hints/ideas are greatly appreciated since I've been fighting this
for days now.

-- 
Jeroen Ruigrok van der Werven <asmodai(at)wxs.nl> / asmodai / kita no mono
PGP fingerprint: 2D92 980E 45FE 2C28 9DB7  9D88 97E6 839B 2EAC 625B
http://www.tendra.org/   | http://diary.in-nomine.org/
Give me the strength to be who I was, and forgive me for who I am...
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Dec 12 00:05:24 2003

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.