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

1 messages from 2009-07-29 to 2009-07-29. Participants: Fabian Emmes.
Thread: https://gitlist.dev/t/20289

## Fabian Emmes, 2009-07-29 09:43

Subject: [PATCH] post-receive-email: Set content-type and encoding in generated mail
Message-ID: <1248860622-11814-1-git-send-email-emmes@informatik.rwth-aachen.de>
URL: https://gitlist.dev/e/1248860622-11814-1-git-send-email-emmes%40informatik.rwth-aachen.de

```
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
-- 
1.6.3.1.9.g95405b

```
