From: mkanat%bugzilla.org <> Date: Tue, 27 Nov 2007 02:36:44 +0000 (+0000) Subject: Bug 374424: unnecessary line breaks and excessive indentation in email subject lines X-Git-Tag: bugzilla-3.0.3~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb69da02cf96692cf2f0aff1b57a3e0d3614c3c1;p=thirdparty%2Fbugzilla.git Bug 374424: unnecessary line breaks and excessive indentation in email subject lines Patch By Max Kanat-Alexander r=LpSolit, a=mkanat --- diff --git a/Bugzilla/Mailer.pm b/Bugzilla/Mailer.pm index 03f370a4eb..956f30139d 100644 --- a/Bugzilla/Mailer.pm +++ b/Bugzilla/Mailer.pm @@ -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); } }