Skip to content

Commit 940bf24

Browse files
committed
Merge branch 'mh/multimail'
* mh/multimail: git-multimail: update to version 1.0.0
2 parents 9fd911a + b513f71 commit 940bf24

File tree

5 files changed

+249
-56
lines changed

5 files changed

+249
-56
lines changed

contrib/hooks/multimail/CHANGES

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
Release 1.0.0
2+
=============
3+
4+
* Fix encoding of non-ASCII email addresses in email headers.
5+
6+
* Fix backwards-compatibility bugs for older Python 2.x versions.
7+
8+
* Fix a backwards-compatibility bug for Git 1.7.1.
9+
10+
* Add an option commitDiffOpts to customize logs for revisions.
11+
12+
* Pass "-oi" to sendmail by default to prevent premature termination
13+
on a line containing only ".".
14+
15+
* Stagger email "Date:" values in an attempt to help mail clients
16+
thread the emails in the right order.
17+
18+
* If a mailing list setting is missing, just skip sending the
19+
corresponding email (with a warning) instead of failing.
20+
21+
* Add a X-Git-Host header that can be used for email filtering.
22+
23+
* Allow the sender's fully-qualified domain name to be configured.
24+
25+
* Minor documentation improvements.
26+
27+
* Add this CHANGES file.
28+
29+
30+
Release 0.9.0
31+
=============
32+
33+
* Initial release.

contrib/hooks/multimail/README

Lines changed: 30 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,10 @@ Requirements
9191
been tested; if you do so, please report your results.)
9292

9393
* To send emails using the default configuration, a standard sendmail
94-
program must be located at '/usr/sbin/sendmail' and configured
95-
correctly to send emails. If this is not the case, see the
96-
multimailhook.mailer configuration variable below for how to
94+
program must be located at '/usr/sbin/sendmail' or
95+
'/usr/lib/sendmail' and must be configured correctly to send emails.
96+
If this is not the case, set multimailhook.sendmailCommand, or see
97+
the multimailhook.mailer configuration variable below for how to
9798
configure git-multimail to send emails via an SMTP server.
9899

99100

@@ -169,7 +170,7 @@ multimailhook.repoName
169170
for gitolite repositories, or otherwise to derive this value from
170171
the repository path name.
171172

172-
multimailhook.mailinglist
173+
multimailhook.mailingList
173174

174175
The list of email addresses to which notification emails should be
175176
sent, as RFC 2822 email addresses separated by commas. This
@@ -184,26 +185,29 @@ multimailhook.refchangeList
184185
reference changes should be sent, as RFC 2822 email addresses
185186
separated by commas. This configuration option can be
186187
multivalued. The default is the value in
187-
multimailhook.mailinglist. Set this value to the empty string to
188-
prevent reference change emails from being sent.
188+
multimailhook.mailingList. Set this value to the empty string to
189+
prevent reference change emails from being sent even if
190+
multimailhook.mailingList is set.
189191

190192
multimailhook.announceList
191193

192194
The list of email addresses to which emails about new annotated
193195
tags should be sent, as RFC 2822 email addresses separated by
194196
commas. This configuration option can be multivalued. The
195-
default is the value in multimailhook.refchangelist or
196-
multimailhook.mailinglist. Set this value to the empty string to
197-
prevent annotated tag announcement emails from being sent.
197+
default is the value in multimailhook.refchangeList or
198+
multimailhook.mailingList. Set this value to the empty string to
199+
prevent annotated tag announcement emails from being sent even if
200+
one of the other values is set.
198201

199202
multimailhook.commitList
200203

201204
The list of email addresses to which emails about individual new
202205
commits should be sent, as RFC 2822 email addresses separated by
203206
commas. This configuration option can be multivalued. The
204-
default is the value in multimailhook.mailinglist. Set this value
207+
default is the value in multimailhook.mailingList. Set this value
205208
to the empty string to prevent notification emails about
206-
individual commits from being sent.
209+
individual commits from being sent even if
210+
multimailhook.mailingList is set.
207211

208212
multimailhook.announceShortlog
209213

@@ -237,10 +241,11 @@ multimailhook.mailer
237241
quoting is allowed in the value of this setting, but remember that
238242
Git requires double-quotes to be escaped; e.g.,
239243

240-
git config multimailhook.sendmailcommand '/usr/sbin/sendmail -t -F \"Git Repo\"'
244+
git config multimailhook.sendmailcommand '/usr/sbin/sendmail -oi -t -F \"Git Repo\"'
241245

242-
Default is '/usr/sbin/sendmail -t' or '/usr/lib/sendmail
243-
-t' (depending on which file is present and executable).
246+
Default is '/usr/sbin/sendmail -oi -t' or
247+
'/usr/lib/sendmail -oi -t' (depending on which file is
248+
present and executable).
244249

245250
multimailhook.envelopeSender
246251

@@ -344,6 +349,14 @@ multimailhook.logOpts
344349
[multimailhook]
345350
logopts = --pretty=format:\"%h %aN <%aE>%n%s%n%n%b%n\"
346351

352+
multimailhook.commitLogOpts
353+
354+
Options passed to "git log" to generate additional info for
355+
revision change emails. For example, adding --ignore-all-spaces
356+
will suppress whitespace changes. The default options are "-C
357+
--stat -p --cc". Shell quoting is allowed; see
358+
multimailhook.logOpts for details.
359+
347360
multimailhook.emailDomain
348361

349362
Domain name appended to the username of the person doing the push
@@ -381,8 +394,8 @@ Email filtering aids
381394

382395
All emails include extra headers to enable fine tuned filtering and
383396
give information for debugging. All emails include the headers
384-
"X-Git-Repo", "X-Git-Refname", and "X-Git-Reftype". ReferenceChange
385-
emails also include headers "X-Git-Oldrev" and "X-Git-Newrev";
397+
"X-Git-Host", "X-Git-Repo", "X-Git-Refname", and "X-Git-Reftype".
398+
ReferenceChange emails also include headers "X-Git-Oldrev" and "X-Git-Newrev";
386399
Revision emails also include header "X-Git-Rev".
387400

388401

@@ -463,6 +476,7 @@ The git-multimail project itself is currently hosted on GitHub:
463476
We use the GitHub issue tracker to keep track of bugs and feature
464477
requests, and GitHub pull requests to exchange patches (though, if you
465478
prefer, you can send patches via the Git mailing list with cc to me).
479+
Please sign off your patches as per the Git project practice.
466480

467481
Please note that although a copy of git-multimail will probably be
468482
distributed in the "contrib" section of the main Git project,

contrib/hooks/multimail/README.Git

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ website:
66
https://github.com/mhagger/git-multimail
77

88
The version in this directory was obtained from the upstream project
9-
on 2013-07-14 and consists of the "git-multimail" subdirectory from
9+
on 2014-04-07 and consists of the "git-multimail" subdirectory from
1010
revision
1111

12-
1a5cb09c698a74d15a715a86b09ead5f56bf4b06
12+
1b32653bafc4f902535b9fc1cd9cae911325b870
1313

1414
Please see the README file in this directory for information about how
1515
to report bugs or contribute to git-multimail.

0 commit comments

Comments
 (0)