From: mkanat%bugzilla.org <> Date: Tue, 27 Nov 2007 02:33:47 +0000 (+0000) Subject: Bug 374424: unnecessary line breaks and excessive indentation in email subject lines X-Git-Tag: bugzilla-3.1.3~458 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c031e0bf0b505e711e48dbe71dd248326e9e77f3;p=thirdparty%2Fbugzilla.git Bug 374424: unnecessary line breaks and excessive indentation in email subject lines Patch By Max Kanat-Alexander r=LpSolit, a=LpSolit --- diff --git a/Bugzilla/Mailer.pm b/Bugzilla/Mailer.pm index 9c61d54b41..a8ab649136 100644 --- a/Bugzilla/Mailer.pm +++ b/Bugzilla/Mailer.pm @@ -71,6 +71,8 @@ sub MessageToMTA { utf8::decode($value); } 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); } }