svn commit: r331884 - svnadmin/hooks/scripts

Oleksandr Tymoshenko gonzo at
Mon Apr 2 20:12:25 UTC 2018

Author: gonzo
Date: Mon Apr  2 20:12:25 2018
New Revision: 331884

  Make bugzilla notification email UTF-8 compatible
  Add Content-Transfer-Encoding and Content-Type headers to indicate
  that email body is UTF-8. Without them Bugzilla's email parser
  defaults to latin-1 encoding and if there are UTF-8 charasters
  in commit messages they get corrupted in refrenced PR's comment text.
  PR:		223634


Modified: svnadmin/hooks/scripts/
--- svnadmin/hooks/scripts/	Mon Apr  2 18:10:41 2018	(r331883)
+++ svnadmin/hooks/scripts/	Mon Apr  2 20:12:25 2018	(r331884)
@@ -26,6 +26,8 @@ for pr in $PRS; do
 		echo "From: commit-hook at"
 		echo "To: notify-bz at"
 		echo "Subject: [Bug $pr]"
+		echo "Content-Type: text/plain; charset=UTF-8"
+		echo "Content-Transfer-Encoding: 8bit"
 		echo ""
 		echo "A commit references this bug:"
 		echo ""

More information about the svn-src-svnadmin mailing list