Customizing post-commit messages in svn for different users
Posted
by
Suresh
on Server Fault
See other posts from Server Fault
or by Suresh
Published on 2012-11-09T04:46:24Z
Indexed on
2012/11/09
5:04 UTC
Read the original article
Hit count: 505
I have an svn repository that users can access (read/write) using their account OR via tunneling over ssh with svnserve. I also have a post-commit hook that sends mails to specific users for different projects via svnnotify: the typical command is
svnnotify <params> --to-regex-map <list of email IDs> <regex>
For users who have accounts on the system, the notification email is sent from @machine.domain, which is fine. For users coming in via tunnelling, the email gets sent from @machine.domain, which is a fake address since these users don't have an account - the only reason I specify a tunnel-user id is to keep track of who made which update.
So my question (finally) is:
is there a way to pass a parameter (the "true" email address) to svnserve so that when the post-commit mail is sent, it can be sent "from" the correct email address ?
p.s this is my first post here - if I haven't provided sufficient information, apologies: I'm happy to provide more details.
© Server Fault or respective owner