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
This commit is contained in:
justdave%bugzilla.org 2007-07-28 18:29:38 +00:00
parent e001c8431a
commit 5881f42702

View File

@ -124,6 +124,11 @@ my %headers;
$headers{'From'} = "$username <cvsmailfilter\@$hostname>"; $headers{'From'} = "$username <cvsmailfilter\@$hostname>";
$headers{'To'} = \@mailto; $headers{'To'} = \@mailto;
$headers{'Subject'} = $cvsargs; $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); $mailer->open(\%headers);
print $mailer $message; print $mailer $message;
$mailer->close; $mailer->close;