]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 405350: Email is broken on tip, "can't send mail from '1' to '1'"
authormkanat%bugzilla.org <>
Mon, 26 Nov 2007 04:02:25 +0000 (04:02 +0000)
committermkanat%bugzilla.org <>
Mon, 26 Nov 2007 04:02:25 +0000 (04:02 +0000)
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat

Bugzilla/Mailer.pm

index 48f40d8b77f2ea596b5a7b4bd2c249c68c2a8e70..9c61d54b418951650650e4aaf6fdf44200146943 100644 (file)
@@ -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);