git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Add Auto-Submitted header to post-receive-email

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Jan 17, 2013, 00:49 UTC
Message-ID
<20130117004959.GD20620@google.com>
In-Reply-To
<258F0FE2-D014-4624-A1E2-721E51F0E12C@salk.edu>
Hi Chris,
Chris Hiestand wrote:
> Andy, do you have any thoughts on adding this email header to
> contrib/hooks/post-receive-email? This patch shouldn't cause problems for anyone
> with a sanely configured mail delivery agent, and the additional header is very
> useful in toggling auto responses.
I'm not Andy, but it sounds very sane to me.  So for what it's worth,
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>

Thanks, Jonathan

(patch left unsnipped for reference)
Show 22 quoted lines
> This conforms to RFC3834 and is useful in preventing eg
> vacation auto-responders from replying by default
>
> Signed-off-by: Chris Hiestand <chiestand@salk.edu>
> ---
>  contrib/hooks/post-receive-email |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/contrib/hooks/post-receive-email b/contrib/hooks/post-receive-email
> index b2171a0..0e5b72d 100755
> --- a/contrib/hooks/post-receive-email
> +++ b/contrib/hooks/post-receive-email
> @@ -237,6 +237,7 @@ generate_email_header()
>  	X-Git-Reftype: $refname_type
>  	X-Git-Oldrev: $oldrev
>  	X-Git-Newrev: $newrev
> +	Auto-Submitted: auto-generated
>  
>  	This is an automated email from the git hooks/post-receive script. It was
>  	generated because a ref change was pushed to the repository containing
> -- 
> 1.7.10.4
Previous: Chris Hiestand
Message 5 of 5 in “Add Auto-Submitted header to post-receive-email”
  1. Add Auto-Submitted header to post-receive-emailChris Hiestand, Apr 15, 2012
  2. Chris HiestandSep 21, 2012
  3. Junio C HamanoSep 21, 2012
  4. Chris HiestandJan 16, 2013
  5. Jonathan NiederJan 17, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.