You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Jeroen Ruigrok/asmodai <as...@wxs.nl> on 2003/12/11 23:03:48 UTC

mailer.py question

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

Re: mailer.py question

Posted by "Sergey A. Lipnevich" <se...@optimaltec.com>.
Add

for_paths = .*

to the group's configuration. The matching routine depends on 
in-repository paths matching the "for_paths" regexp.
Good luck!

Sergey A. Lipnevich wrote:
> Jeroen Ruigrok/asmodai wrote:
> 
>> I am trying to iron out the last glitch in my mailer.conf.
>>
> (skipped)
> 
>>
>> 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.
>>
> 
> Same here with Subversion 0.34.0 and latest mailer.py. I've sent a 
> message to dev@ about this.
> I also noticed that using %(author)s works. "author" is a default 
> parameter created in the constructor of config class.
> I'm trying to investigate.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: mailer.py question

Posted by "Sergey A. Lipnevich" <se...@optimaltec.com>.
Jeroen Ruigrok/asmodai wrote:
> I am trying to iron out the last glitch in my mailer.conf.
> 
(skipped)
> 
> 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.
> 

Same here with Subversion 0.34.0 and latest mailer.py. I've sent a 
message to dev@ about this.
I also noticed that using %(author)s works. "author" is a default 
parameter created in the constructor of config class.
I'm trying to investigate.

Sergey.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: mailer.py question

Posted by "Sergey A. Lipnevich" <se...@optimaltec.com>.
Jeroen Ruigrok/asmodai wrote:
> I am trying to iron out the last glitch in my mailer.conf.
> 
(skipped)
> 
> 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.
> 

Same here with Subversion 0.34.0 and latest mailer.py. I've sent a 
message to dev@ about this.
I also noticed that using %(author)s works. "author" is a default 
parameter created in the constructor of config class.
I'm trying to investigate.

Sergey.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org