davideuler / gitblit

Automatically exported from code.google.com/p/gitblit
Apache License 2.0
0 stars 0 forks source link

Add documentation on how to setup 'per repository' email notification - instructions included here #573

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Request is to add documentation on how to setup gitblit for 'per repository' 
email notifications. 

Finally, cracked the code but took too long. :-(

Here's how...

In your local bare git repositories, update the CONFIG file as follow:

1. Add to section [gitblit] with new line of CONFIG file:

postReceiveSCript = sendmail-html 

or just sendmail if you don't want HTML version.

2. Add a [hooks] section to the CONFIG file like:

[hooks]
        mailinglist = "myEmailAddress@foo.com myOtherAddr@bar.com"

The mailinglist value MUST be in double quotes.  mailinglist is case sensitive 
(I believe).  You can also have the email addresses separated by commas rather 
than spaces.  And whitespace regex is \s+ so any number of spaces will do...

3. Also be sure to update gitblit.properties in the glitbit install data folder:

mail.server=

etc...

v/r

Original issue reported on code.google.com by mark.n.p...@gmail.com on 14 Mar 2015 at 2:50