From: mkanat%bugzilla.org <> Date: Mon, 26 Nov 2007 04:02:25 +0000 (+0000) Subject: Bug 405350: Email is broken on tip, "can't send mail from '1' to '1'" X-Git-Tag: bugzilla-3.1.3~459 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b8b5fb03bd8a552b993f85764868dab35bdd3267;p=thirdparty%2Fbugzilla.git Bug 405350: Email is broken on tip, "can't send mail from '1' to '1'" Patch By Max Kanat-Alexander r=LpSolit, a=mkanat --- diff --git a/Bugzilla/Mailer.pm b/Bugzilla/Mailer.pm index 48f40d8b77..9c61d54b41 100644 --- a/Bugzilla/Mailer.pm +++ b/Bugzilla/Mailer.pm @@ -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);