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

Re: [PATCH] post-receive-email: Set content-type and encoding in generated mail

From
TLTeemu Likonen <tlikonen@iki.fi>
Date
Jul 29, 2009, 14:00 UTC
Message-ID
<87tz0vwpvc.fsf@iki.fi>
In-Reply-To
<1248875304-13167-1-git-send-email-emmes@informatik.rwth-aachen.de>
On 2009-07-29 15:48 (+0200), Fabian Emmes wrote:
Show 21 quoted lines
> Add proper content-type header to mails generated by post-receive-email, as
> suggested by Alexander Gerasiov in
> http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg588535.html
>
> Signed-off-by: Fabian Emmes <emmes@informatik.rwth-aachen.de>
> ---
>  contrib/hooks/post-receive-email |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/contrib/hooks/post-receive-email b/contrib/hooks/post-receive-email
> index 2a66063..0c50155 100755
> --- a/contrib/hooks/post-receive-email
> +++ b/contrib/hooks/post-receive-email
> @@ -197,6 +197,7 @@ generate_email_header()
>  	cat <<-EOF
>  	To: $recipients
>  	Subject: ${emailprefix}$projectdesc $refname_type, $short_refname, ${change_type}d. $describe
> +	Content-Type: text/plain; charset=utf-8
>  	X-Git-Refname: $refname
>  	X-Git-Reftype: $refname_type
>  	X-Git-Oldrev: $oldrev
That's not complete. You need all these:
    MIME-Version: 1.0
    Content-Type: text/plain; charset=utf-8
    Content-Transfer-Encoding: 8bit
Previous: Fabian EmmesNext: Jeff King
Message 2 of 5 in “post-receive-email: Set content-type and encoding in generated mail”
  1. post-receive-email: Set content-type and encoding in generated mailFabian Emmes, Jul 29, 2009
  2. Teemu LikonenJul 29, 2009
  3. Jeff KingJul 29, 2009
  4. Fabian EmmesJul 30, 2009
  5. Jeff KingJul 31, 2009

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.