Commit b8b5fb03 authored by mkanat%bugzilla.org's avatar mkanat%bugzilla.org

Bug 405350: Email is broken on tip, "can't send mail from '1' to '1'"

Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat
parent 5c2713ec
......@@ -68,7 +68,7 @@ sub MessageToMTA {
foreach my $header qw(From To Cc Reply-To Sender Errors-To Subject) {
if (my $value = $email->header($header)) {
if (Bugzilla->params->{'utf8'} && !utf8::is_utf8($value)) {
$value = utf8::decode($value);
utf8::decode($value);
}
my $encoded = encode('MIME-Q', $value);
$email->header_set($header, $encoded);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment