From: "Rüdiger Sonderfeld" <ruediger@c-plusplus.de>
To: emacs-devel@gnu.org
Cc: Bob Proulx <bob@proulx.com>
Subject: Re: Improved git commit emails
Date: Thu, 23 Jan 2014 19:42:25 +0100 [thread overview]
Message-ID: <8859790.0SfKYDznnz@descartes> (raw)
In-Reply-To: <20140120010918.GE29669@hysteria.proulx.com>
On Sunday 19 January 2014 18:09:18 Bob Proulx wrote:
> Glenn Morris wrote:
> > Thanks. It seems like an improvement.
> >
> > Is it possible to add a "Mail-Followup-To: committer, emacs-devel"
> > header?
>
> I see no support for doing so. I see only this section.
It supports changing it by including git_multimail.py and changing the
template variable values.
E.g., using the following as post-receive hook (requires git_multimail.py to
be in the hooks directory) might work
-- 8< --------------------------------------------------------------- >8 --
#! /usr/bin/env python2
import sys
import os
import git_multimail
#git_multimail.DEBUG = True
git_multimail.FOOTER_TEMPLATE = ""
git_multimail.REFCHANGE_HEADER_TEMPLATE = """\
To: %(recipients)s
Subject: %(subject)s
MIME-Version: 1.0
Content-Type: text/plain; charset=%(charset)s
Content-Transfer-Encoding: 8bit
Message-ID: %(msgid)s
From: %(fromaddr)s
Reply-To: %(reply_to)s
Mail-Followup-To: %(fromaddr)s, emacs-devel@gnu.org
X-Git-Repo: %(repo_shortname)s
X-Git-Refname: %(refname)s
X-Git-Reftype: %(refname_type)s
X-Git-Oldrev: %(oldrev)s
X-Git-Newrev: %(newrev)s
Auto-Submitted: auto-generated
"""
git_multimail.REFCHANGE_INTRO_TEMPLATE = """\
%(pusher)s pushed a change to %(refname_type)s %(short_refname)s
in repository %(repo_shortname)s.
"""
git_multimail.REVISION_HEADER_TEMPLATE = """\
To: %(recipients)s
Subject: %(emailprefix)s%(num)02d/%(tot)02d: %(oneline)s
MIME-Version: 1.0
Content-Type: text/plain; charset=%(charset)s
Content-Transfer-Encoding: 8bit
From: %(fromaddr)s
Reply-To: %(reply_to)s
Mail-Followup-To: %(fromaddr)s, emacs-devel@gnu.org
In-Reply-To: %(reply_to_msgid)s
References: %(reply_to_msgid)s
X-Git-Repo: %(repo_shortname)s
X-Git-Refname: %(refname)s
X-Git-Reftype: %(refname_type)s
X-Git-Rev: %(rev)s
Auto-Submitted: auto-generated
"""
git_multimail.REVISION_INTRO_TEMPLATE = """\
%(pusher)s pushed a commit to %(refname_type)s %(short_refname)s
in repository %(repo_shortname)s.
"""
git_multimail.REVISION_FOOTER_TEMPLATE = git_multimail.FOOTER_TEMPLATE
# To debug use
# git_multimail.main(sys.argv[1:]+ ['--stdout'])
git_multimail.main(sys.argv[1:])
-- 8< --------------------------------------------------------------- >8 --
That way changing git_multimail.py is not necessary and therefore upgrading it
should be less hassle. But I'm not sure if the code encodes the Mail-
Followup-To header correctly.
See "Customizing email contents" and "Customizing git-multimail for your
environment" in git_multimail's README.
Regards,
Rüdiger
next prev parent reply other threads:[~2014-01-23 18:42 UTC|newest]
Thread overview: 130+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-08 13:52 Git transition checklist Eric S. Raymond
2014-01-08 14:59 ` Stefan Monnier
2014-01-08 16:35 ` Rüdiger Sonderfeld
2014-01-08 17:12 ` Stefan Monnier
2014-01-08 18:08 ` Rüdiger Sonderfeld
2014-01-08 18:21 ` Improved git commit emails [was Re: Git transition checklist] Glenn Morris
2014-01-08 18:31 ` Ted Zlatanov
2014-01-08 18:37 ` Improved git commit emails Glenn Morris
2014-01-08 21:04 ` Ted Zlatanov
2014-01-12 5:44 ` Bob Proulx
2014-01-13 2:22 ` Glenn Morris
2014-01-15 2:10 ` Bob Proulx
2014-01-15 7:35 ` Glenn Morris
2014-01-20 1:09 ` Bob Proulx
2014-01-20 2:16 ` Stephen J. Turnbull
2014-01-20 4:27 ` Bob Proulx
2014-01-22 19:20 ` Glenn Morris
2014-01-23 18:42 ` Rüdiger Sonderfeld [this message]
2014-01-28 23:45 ` Bob Proulx
2014-01-29 0:57 ` Glenn Morris
2014-01-31 0:41 ` Bob Proulx
2014-01-08 16:48 ` Git transition checklist Eric S. Raymond
2014-01-08 17:19 ` Stefan Monnier
2014-01-08 18:43 ` Andreas Schwab
2014-01-08 19:02 ` Glenn Morris
2014-01-08 19:07 ` Eric S. Raymond
2014-01-08 19:17 ` Eric S. Raymond
2014-01-08 17:49 ` Glenn Morris
2014-01-08 18:02 ` Eli Zaretskii
2014-01-08 18:17 ` David Engster
2014-01-08 18:36 ` Eli Zaretskii
2014-01-08 19:07 ` Andreas Schwab
2014-01-08 19:16 ` David Engster
2014-01-08 18:41 ` Andreas Schwab
2014-01-08 18:48 ` Eli Zaretskii
2014-01-08 19:19 ` Andreas Schwab
2014-01-08 15:02 ` Stephen Berman
2014-01-08 16:26 ` Eric S. Raymond
2014-01-08 16:37 ` Git repack on Savannah [was: Re: Git transition checklist] James Cloos
2014-01-12 6:11 ` Bob Proulx
2014-01-12 15:59 ` Eli Zaretskii
2014-01-08 15:33 ` Git transition checklist Bastien
2014-01-08 16:19 ` Eric S. Raymond
2014-01-08 16:20 ` Bastien
2014-01-08 17:48 ` Glenn Morris
2014-01-08 18:15 ` Dani Moncayo
2014-01-08 18:22 ` Glenn Morris
2014-01-08 18:23 ` Andreas Schwab
2014-01-08 18:26 ` Glenn Morris
2014-01-08 18:50 ` Stefan Monnier
2014-01-08 19:00 ` Glenn Morris
2014-01-08 19:41 ` Stefan Monnier
2014-01-08 19:11 ` Andreas Schwab
2014-01-08 19:16 ` Glenn Morris
2014-01-08 19:46 ` Stefan Monnier
2014-01-08 23:07 ` Dani Moncayo
2014-01-12 20:15 ` Bob Proulx
2014-01-13 10:50 ` Bastien
2014-01-08 15:34 ` Bastien
2014-01-08 16:13 ` Eric S. Raymond
2014-01-08 17:47 ` Glenn Morris
2014-01-08 20:02 ` Eric S. Raymond
2014-01-08 20:19 ` Eli Zaretskii
2014-01-08 21:10 ` Andreas Schwab
2014-01-09 0:54 ` James Cloos
2014-01-09 1:23 ` Rüdiger Sonderfeld
2014-01-09 6:38 ` Eli Zaretskii
2014-01-09 0:51 ` James Cloos
2014-01-09 1:36 ` Rüdiger Sonderfeld
2014-01-09 1:48 ` Rüdiger Sonderfeld
2014-01-09 6:41 ` Eli Zaretskii
2014-01-09 11:10 ` Andreas Schwab
2014-01-09 16:17 ` Eli Zaretskii
2014-01-09 16:45 ` Rüdiger Sonderfeld
2014-01-09 17:44 ` Eli Zaretskii
2014-01-09 11:53 ` Rüdiger Sonderfeld
2014-01-09 1:53 ` Glenn Morris
2014-01-09 2:13 ` Glenn Morris
2014-01-09 12:14 ` Eric S. Raymond
2014-01-09 14:55 ` Paul Eggert
2014-01-09 15:15 ` Eric S. Raymond
2014-01-09 15:24 ` Juanma Barranquero
2014-01-09 16:45 ` Eric S. Raymond
2014-01-09 2:12 ` Glenn Morris
2014-01-09 4:27 ` Stephen J. Turnbull
2014-01-09 7:05 ` Eli Zaretskii
2014-01-09 8:14 ` Stephen J. Turnbull
2014-01-09 11:22 ` Andreas Schwab
2014-01-09 14:30 ` Stephen J. Turnbull
2014-01-09 14:58 ` David Kastrup
2014-01-09 16:58 ` Eli Zaretskii
2014-01-09 18:46 ` Stephen J. Turnbull
2014-01-09 19:03 ` Eli Zaretskii
2014-01-09 19:40 ` Óscar Fuentes
2014-01-09 19:47 ` Eli Zaretskii
2014-01-09 20:12 ` Óscar Fuentes
2014-01-09 20:17 ` Glenn Morris
2014-01-09 20:29 ` Eli Zaretskii
2014-01-09 21:49 ` Óscar Fuentes
2014-01-10 6:38 ` Eli Zaretskii
2014-01-11 9:14 ` Eli Zaretskii
2014-01-11 20:09 ` Glenn Morris
2014-01-11 20:32 ` David Kastrup
2014-01-12 10:30 ` Jorgen Schaefer
2014-01-13 22:34 ` Barry Warsaw
2014-01-13 17:06 ` Glenn Morris
2014-01-13 17:50 ` David Kastrup
2014-01-14 17:05 ` Richard Stallman
2014-01-09 15:12 ` Stefan Monnier
2014-01-09 15:33 ` Andreas Schwab
2014-01-08 18:14 ` Eli Zaretskii
2014-01-08 18:29 ` Glenn Morris
2014-01-08 18:39 ` Eli Zaretskii
2014-01-08 18:46 ` Eli Zaretskii
2014-01-08 20:17 ` David Kastrup
2014-01-08 19:03 ` Andreas Schwab
2014-01-08 18:45 ` Achim Gratz
2014-01-08 18:52 ` Eli Zaretskii
2014-01-08 19:15 ` Achim Gratz
2014-01-08 19:00 ` Andreas Schwab
2014-01-08 20:11 ` Eric S. Raymond
2014-01-08 20:22 ` Eli Zaretskii
2014-01-08 20:28 ` Eric S. Raymond
2014-01-08 21:04 ` Eli Zaretskii
2014-01-08 21:26 ` Eric S. Raymond
2014-01-09 6:25 ` Eli Zaretskii
2014-01-08 21:47 ` David Kastrup
2014-01-08 20:52 ` Eli Zaretskii
2014-01-08 21:07 ` Stefan Monnier
2014-01-08 21:22 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8859790.0SfKYDznnz@descartes \
--to=ruediger@c-plusplus.de \
--cc=bob@proulx.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.