SVN server email notification function (SMTP) and How To configure it

537 views
Skip to first unread message

Zhaowei Mao

unread,
Nov 7, 2017, 5:38:54 AM11/7/17
to us...@subversion.apache.org

Hi There,

 

We use SVN server (CollabNetSubversion-server-1.5.5-1.win32) for years, I’d like to configure email notification on server so that may trace any changes in repositories. It is very likely that commit_email.pl is bundled with Subversion, which allow administrator to configure it in hook (use post commit hook) in repository.  

 

Other than email.pl, can anyone recommend any SMTP component or mailer works for SVN but allow administrator to do configuration via GUI?

 

Much appreciate it!

 

 

Regards,

 

Zhao Wei    

IT Department, Weike (S) Pte Ltd                                                                    

T: (65) 6547 1878   Ext. 313

E: zhaow...@weikegroup.com

 http://i.imgur.com/WpdH6l0.jpg

3 Kallang Sector, #05-01/02  Singapore 349278

T: (65) 6547 1878

F: (65) 6547 1879

www.weikegroup.com  

cid:image001.jpg@01D320C4.B0F8F1A0

 

Ryan Schmidt

unread,
Nov 7, 2017, 2:05:02 PM11/7/17
to Zhaowei Mao, Subversion Users

On Nov 7, 2017, at 04:35, Zhaowei Mao wrote:

> We use SVN server (CollabNetSubversion-server-1.5.5-1.win32) for years, I’d like to configure email notification on server so that may trace any changes in repositories. It is very likely that commit_email.pl is bundled with Subversion, which allow administrator to configure it in hook (use post commit hook) in repository.
>
> Other than email.pl, can anyone recommend any SMTP component or mailer works for SVN but allow administrator to do configuration via GUI?

As you can see at the top of the script:

https://svn.apache.org/repos/asf/subversion/trunk/contrib/hook-scripts/commit-email.pl.in

commit-email.pl is deprecated. The replacement is mailer.py:

https://svn.apache.org/repos/asf/subversion/trunk/tools/hook-scripts/mailer/mailer.py

Zhaowei Mao

unread,
Nov 8, 2017, 3:26:51 AM11/8/17
to Ryan Schmidt, Subversion Users
Hi Ryan,

Thanks a lot for your reply. so far I did search those tools such as
commit_malier.py, svnmailer, SVN-Notify, all are required a lot of scripts
writing, I do not find any tool with GUI that easily for administrator to do
a setup and configure email notification.

Any idea will be much appreciated!


Regards,
Zhao Wei

Zhaowei Mao

unread,
Nov 14, 2017, 11:47:05 PM11/14/17
to Subversion Users, Ryan Schmidt
Hi There,

For SVN-Notify on a windows server, which has a SVN server
(CollabNetSubversion-server-1.5.5-1.win32) running for years, could anybody
shed more light on its 'pre-installation'?

Greatly appreciate it!


Zhao




-----Original Message-----
From: Zhaowei Mao [mailto:zhaow...@weikegroup.com]
Sent: Wednesday, 8 November, 2017 12:57 PM
To: 'Ryan Schmidt' <subvers...@ryandesign.com>
Cc: 'Subversion Users' <us...@subversion.apache.org>
Subject: RE: SVN server email notification function (SMTP) and How To
configure it

Hi Ryan,

Thanks a lot for your reply. so far I did search those tools such as
commit_malier.py, svnmailer, SVN-Notify, all are required a lot of scripts
writing, I do not find any tool with GUI that easily for administrator to do
a setup and configure email notification.

Any idea will be much appreciated!


Regards,
Zhao Wei


-----Original Message-----
From: Ryan Schmidt [mailto:subvers...@ryandesign.com]
Sent: Wednesday, 8 November, 2017 3:05 AM
To: Zhaowei Mao <zhaow...@weikegroup.com>
Cc: Subversion Users <us...@subversion.apache.org>
Subject: Re: SVN server email notification function (SMTP) and How To
configure it


Johan Corveleyn

unread,
Nov 16, 2017, 2:25:08 PM11/16/17
to Zhaowei Mao, Subversion Users, Ryan Schmidt
Another suggestion: https://github.com/qazwart/SVN-Watcher-Hook

I've used a custom version of that (perl) hook script. It allows your
users to control their own "watch file" (in the svn repository
itself), which is a simple config file containing patterns etc. for
which they want to receive post-commit mails.

It's not a GUI, but it's great that users can edit their own watch
file (with a very simple syntax), so they don't have to bother a
sysadmin to customize their notifications.

--
Johan

Zhaowei Mao

unread,
Nov 17, 2017, 5:44:17 AM11/17/17
to Johan Corveleyn, Subversion Users, Ryan Schmidt
Hi Johan,

Thanks so much for this input. I noted below:

REQUIREMENTS
* Perl 5.7 or later.


Does it work fine for my SVN server
(CollabNetSubversion-server-1.5.5-1.win32) on a Windows server 2008?


* Mail::Sendmail (optional). This is an optional Perl module to
install. It's very old, but straightforward and usually works
without too many issues. You can use the Perl CPAN utility to
install this module.

Which version of 'Mail::Sendmail'? or, it doesn't matter.


Thank you in advance!

Zhao Wei

-----Original Message-----
From: Johan Corveleyn [mailto:jco...@gmail.com]
Sent: Friday, 17 November, 2017 3:25 AM
To: Zhaowei Mao <zhaow...@weikegroup.com>
Cc: Subversion Users <us...@subversion.apache.org>; Ryan Schmidt
<subvers...@ryandesign.com>
Subject: Re: SVN server email notification function (SMTP) and How To
configure it

Johan Corveleyn

unread,
Nov 17, 2017, 6:31:50 AM11/17/17
to Zhaowei Mao, Subversion Users, Ryan Schmidt
The SVN Server version should be no problem, but I'm not so sure that
the script will run 'as is' on Windows. I'm using it on Solaris. I've
actually used a previous version of that script which was distributed
on the users@ list years ago. I've had to tweak it a bit, and have
coded it to call "/usr/sbin/sendmail" directly (so no Mail::Sendmail
perl module). Apparently it has changed a bit since then, so I really
can't say much about that.

I suggest you try it out and see if you can get it working. Otherwise,
maybe you'll have to contact the developer via the Github project.

--
Johan

Zhaowei Mao

unread,
Nov 19, 2017, 10:12:26 PM11/19/17
to Johan Corveleyn, Subversion Users, Ryan Schmidt
Hi Johan,

Really appreciate your inputs and sharing, would update you if there's any
outcome.

Thanks again!


Zhao Wei
Reply all
Reply to author
Forward
0 new messages