From 5881f42702a95b6e8db5ba224751632d439f61de Mon Sep 17 00:00:00 2001 From: "justdave%bugzilla.org" Date: Sat, 28 Jul 2007 18:29:38 +0000 Subject: [PATCH] Encode the email as UTF-8 instead of ISO-8859-1, as the former seems to be getting used more often on checkin comments these days (it's the default chartset on almost every OS nowadays) git-svn-id: svn://10.0.0.236/trunk@231133 18797224-902f-48f8-a5cc-f745e15eee43 --- CVSROOT/cvsmailfilter.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CVSROOT/cvsmailfilter.pl b/CVSROOT/cvsmailfilter.pl index dbce33e7350..2b2e3fbc1f6 100755 --- a/CVSROOT/cvsmailfilter.pl +++ b/CVSROOT/cvsmailfilter.pl @@ -124,6 +124,11 @@ my %headers; $headers{'From'} = "$username "; $headers{'To'} = \@mailto; $headers{'Subject'} = $cvsargs; +$headers{'MIME-Version'} = '1.0'; +$headers{'Content-Type'} = 'text/plain; charset=UTF-8'; # assume everything is UTF-8 +$headers{'Content-Transfer-Encoding'} = '8bit'; +$headers{'Content-Disposition'} = 'inline'; + $mailer->open(\%headers); print $mailer $message; $mailer->close;