From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?R=FCdiger?= Sonderfeld Newsgroups: gmane.emacs.devel Subject: Re: Improved git commit emails Date: Thu, 23 Jan 2014 19:42:25 +0100 Message-ID: <8859790.0SfKYDznnz@descartes> References: <2s1u09wvd3.fsf@fencepost.gnu.org> <20140120010918.GE29669@hysteria.proulx.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1390502564 489 80.91.229.3 (23 Jan 2014 18:42:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Jan 2014 18:42:44 +0000 (UTC) Cc: Bob Proulx To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 23 19:42:51 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W6PEn-0007Dl-CF for ged-emacs-devel@m.gmane.org; Thu, 23 Jan 2014 19:42:49 +0100 Original-Received: from localhost ([::1]:42750 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6PEn-0005Ky-1q for ged-emacs-devel@m.gmane.org; Thu, 23 Jan 2014 13:42:49 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34453) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6PEe-0005Kc-8f for emacs-devel@gnu.org; Thu, 23 Jan 2014 13:42:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W6PEW-00059z-T8 for emacs-devel@gnu.org; Thu, 23 Jan 2014 13:42:40 -0500 Original-Received: from ptmx.org ([178.63.28.110]:34753) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6PEW-00059i-M1; Thu, 23 Jan 2014 13:42:32 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by ptmx.org (Postfix) with ESMTP id 238AA2506C; Thu, 23 Jan 2014 19:42:31 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at ptmx.org Original-Received: from ptmx.org ([127.0.0.1]) by localhost (ptmx.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i3KgAdr6hzS5; Thu, 23 Jan 2014 19:42:29 +0100 (CET) Original-Received: from descartes.localnet (chello080108246092.7.14.vie.surfer.at [80.108.246.92]) by ptmx.org (Postfix) with ESMTPSA id 1E0B722A74; Thu, 23 Jan 2014 19:42:29 +0100 (CET) User-Agent: KMail/4.11.3 (Linux/3.11.0-14-generic; KDE/4.11.3; x86_64; ; ) In-Reply-To: <20140120010918.GE29669@hysteria.proulx.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 178.63.28.110 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:168975 Archived-At: On Sunday 19 January 2014 18:09:18 Bob Proulx wrote: > Glenn Morris wrote: > > Thanks. It seems like an improvement. > >=20 > > Is it possible to add a "Mail-Followup-To: committer, emacs-devel" > > header? >=20 > I see no support for doing so. I see only this section. It supports changing it by including git_multimail.py and changing the=20= template variable values. E.g., using the following as post-receive hook (requires git_multimail.= py to=20 be in the hooks directory) might work -- 8< --------------------------------------------------------------- >= 8 -- #! /usr/bin/env python2 import sys import os import git_multimail #git_multimail.DEBUG =3D True git_multimail.FOOTER_TEMPLATE =3D "" git_multimail.REFCHANGE_HEADER_TEMPLATE =3D """\ To: %(recipients)s Subject: %(subject)s MIME-Version: 1.0 Content-Type: text/plain; charset=3D%(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 =3D """\ %(pusher)s pushed a change to %(refname_type)s %(short_refname)s in repository %(repo_shortname)s. """ git_multimail.REVISION_HEADER_TEMPLATE =3D """\ To: %(recipients)s Subject: %(emailprefix)s%(num)02d/%(tot)02d: %(oneline)s MIME-Version: 1.0 Content-Type: text/plain; charset=3D%(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 =3D """\ %(pusher)s pushed a commit to %(refname_type)s %(short_refname)s in repository %(repo_shortname)s. """ git_multimail.REVISION_FOOTER_TEMPLATE =3D git_multimail.FOOTER_TEMPLAT= E # 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 upgra= ding it=20 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 you= r=20 environment" in git_multimail's README. Regards, R=C3=BCdiger