Customizing post-commit messages in svn for different users
- by Suresh
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.