Date: Mon, 2 Apr 2018 20:12:25 +0000 (UTC) From: Oleksandr Tymoshenko <gonzo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-svnadmin@freebsd.org Subject: svn commit: r331884 - svnadmin/hooks/scripts Message-ID: <201804022012.w32KCPQc071900@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: gonzo Date: Mon Apr 2 20:12:25 2018 New Revision: 331884 URL: https://svnweb.freebsd.org/changeset/base/331884 Log: 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/notify_bz.sh Modified: svnadmin/hooks/scripts/notify_bz.sh ============================================================================== --- svnadmin/hooks/scripts/notify_bz.sh Mon Apr 2 18:10:41 2018 (r331883) +++ svnadmin/hooks/scripts/notify_bz.sh Mon Apr 2 20:12:25 2018 (r331884) @@ -26,6 +26,8 @@ for pr in $PRS; do echo "From: commit-hook@freebsd.org" echo "To: notify-bz@freebsd.org" 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 ""
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201804022012.w32KCPQc071900>