From f6a6e63306e63825013f9a58b7527f2653420976 Mon Sep 17 00:00:00 2001 From: byron jones Date: Tue, 27 Mar 2018 05:01:46 +0800 Subject: Bug 1448681 - Bugmail Message-ID header format changed without changing In-Reply-To/References, breaking threading --- Bugzilla/Mailer.pm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'Bugzilla') 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; -- cgit v1.2.3-24-g4f1b