]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 374424: unnecessary line breaks and excessive indentation in email subject lines
authormkanat%bugzilla.org <>
Tue, 27 Nov 2007 02:36:44 +0000 (02:36 +0000)
committermkanat%bugzilla.org <>
Tue, 27 Nov 2007 02:36:44 +0000 (02:36 +0000)
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat

Bugzilla/Mailer.pm

index 03f370a4eb492a50b4afe80f5faa4986a2d5c76a..956f30139d94ecae7268416ea89099dc9d0fd511 100644 (file)
@@ -69,6 +69,8 @@ sub MessageToMTA {
         if (my $value = $email->header($header)) {
             $value = Encode::decode("UTF-8", $value) if Bugzilla->params->{'utf8'};
             my $encoded = encode('MIME-Q', $value);
+            # Encode adds unnecessary line breaks, with two spaces after each.
+            $encoded =~ s/\n  / /g;
             $email->header_set($header, $encoded);
         }
     }