From: byron jones Date: Mon, 26 Mar 2018 21:01:46 +0000 (+0800) Subject: Bug 1448681 - Bugmail Message-ID header format changed without changing In-Reply... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6a6e63306e63825013f9a58b7527f2653420976;p=thirdparty%2Fbugzilla.git Bug 1448681 - Bugmail Message-ID header format changed without changing In-Reply-To/References, breaking threading --- diff --git a/Bugzilla/Mailer.pm b/Bugzilla/Mailer.pm index e245a05e0..1dec3d4ff 100644 --- a/Bugzilla/Mailer.pm +++ b/Bugzilla/Mailer.pm @@ -252,15 +252,14 @@ sub build_thread_marker { $sitespec = "-$2$sitespec"; # Put the port number back in, before the '@' } - my $threadingmarker; + my $threadingmarker = "References: "; if ($is_new) { - $threadingmarker = "Message-ID: "; + $threadingmarker .= "\nMessage-ID: "; } else { my $rand_bits = generate_random_password(10); - $threadingmarker = "Message-ID: " . - "\nIn-Reply-To: " . - "\nReferences: "; + $threadingmarker .= "\nMessage-ID: " . + "\nIn-Reply-To: "; } return $threadingmarker;