From c031e0bf0b505e711e48dbe71dd248326e9e77f3 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Tue, 27 Nov 2007 02:33:47 +0000 Subject: Bug 374424: unnecessary line breaks and excessive indentation in email subject lines Patch By Max Kanat-Alexander r=LpSolit, a=LpSolit --- Bugzilla/Mailer.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Bugzilla/Mailer.pm') diff --git a/Bugzilla/Mailer.pm b/Bugzilla/Mailer.pm index 9c61d54b4..a8ab64913 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); } } -- cgit v1.2.1