Skip to content

Commit

Permalink
Merge branch 'mh/multimail'
Browse files Browse the repository at this point in the history
* mh/multimail:
  git-multimail: update to version 1.0.0
  • Loading branch information
Junio C Hamano committed Apr 16, 2014
2 parents 9fd911a + b513f71 commit 940bf24
Show file tree
Hide file tree
Showing 5 changed files with 249 additions and 56 deletions.
33 changes: 33 additions & 0 deletions contrib/hooks/multimail/CHANGES
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
Release 1.0.0
=============

* Fix encoding of non-ASCII email addresses in email headers.

* Fix backwards-compatibility bugs for older Python 2.x versions.

* Fix a backwards-compatibility bug for Git 1.7.1.

* Add an option commitDiffOpts to customize logs for revisions.

* Pass "-oi" to sendmail by default to prevent premature termination
on a line containing only ".".

* Stagger email "Date:" values in an attempt to help mail clients
thread the emails in the right order.

* If a mailing list setting is missing, just skip sending the
corresponding email (with a warning) instead of failing.

* Add a X-Git-Host header that can be used for email filtering.

* Allow the sender's fully-qualified domain name to be configured.

* Minor documentation improvements.

* Add this CHANGES file.


Release 0.9.0
=============

* Initial release.
46 changes: 30 additions & 16 deletions contrib/hooks/multimail/README
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,10 @@ Requirements
been tested; if you do so, please report your results.)

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


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

multimailhook.mailinglist
multimailhook.mailingList

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

multimailhook.announceList

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

multimailhook.commitList

The list of email addresses to which emails about individual new
commits should be sent, as RFC 2822 email addresses separated by
commas. This configuration option can be multivalued. The
default is the value in multimailhook.mailinglist. Set this value
default is the value in multimailhook.mailingList. Set this value
to the empty string to prevent notification emails about
individual commits from being sent.
individual commits from being sent even if
multimailhook.mailingList is set.

multimailhook.announceShortlog

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

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

Default is '/usr/sbin/sendmail -t' or '/usr/lib/sendmail
-t' (depending on which file is present and executable).
Default is '/usr/sbin/sendmail -oi -t' or
'/usr/lib/sendmail -oi -t' (depending on which file is
present and executable).

multimailhook.envelopeSender

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

multimailhook.commitLogOpts

Options passed to "git log" to generate additional info for
revision change emails. For example, adding --ignore-all-spaces
will suppress whitespace changes. The default options are "-C
--stat -p --cc". Shell quoting is allowed; see
multimailhook.logOpts for details.

multimailhook.emailDomain

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

All emails include extra headers to enable fine tuned filtering and
give information for debugging. All emails include the headers
"X-Git-Repo", "X-Git-Refname", and "X-Git-Reftype". ReferenceChange
emails also include headers "X-Git-Oldrev" and "X-Git-Newrev";
"X-Git-Host", "X-Git-Repo", "X-Git-Refname", and "X-Git-Reftype".
ReferenceChange emails also include headers "X-Git-Oldrev" and "X-Git-Newrev";
Revision emails also include header "X-Git-Rev".


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

Please note that although a copy of git-multimail will probably be
distributed in the "contrib" section of the main Git project,
Expand Down
4 changes: 2 additions & 2 deletions contrib/hooks/multimail/README.Git
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ website:
https://github.com/mhagger/git-multimail

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

1a5cb09c698a74d15a715a86b09ead5f56bf4b06
1b32653bafc4f902535b9fc1cd9cae911325b870

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

0 comments on commit 940bf24

Please sign in to comment.