diff options
author | dkl%redhat.com <> | 2008-08-28 03:38:45 +0200 |
---|---|---|
committer | dkl%redhat.com <> | 2008-08-28 03:38:45 +0200 |
commit | ef56c491a65eed9dfddb2866c5faa59acb69b0ed (patch) | |
tree | c19810a3e76fae26301ce030f5e9412e564fcee7 /Bugzilla/BugMail.pm | |
parent | 745f9e658a8e4d26bfd250b263132b25ab60e173 (diff) | |
download | bugzilla-ef56c491a65eed9dfddb2866c5faa59acb69b0ed.tar.gz bugzilla-ef56c491a65eed9dfddb2866c5faa59acb69b0ed.tar.xz |
Bug 449791 â Allow flag notification emails to be threaded similar to normal bug change emails
Patch by Dave Lawrence <dkl@redhat.com> - r/a=LpSolit
Diffstat (limited to 'Bugzilla/BugMail.pm')
-rw-r--r-- | Bugzilla/BugMail.pm | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm index 20bb7e254..4e91d4be4 100644 --- a/Bugzilla/BugMail.pm +++ b/Bugzilla/BugMail.pm @@ -636,22 +636,6 @@ sub sendMail { push(@watchingrel, 'None') unless @watchingrel; push @watchingrel, map { user_id_to_login($_) } @$watchingRef; - my $sitespec = '@' . Bugzilla->params->{'urlbase'}; - $sitespec =~ s/:\/\//\./; # Make the protocol look like part of the domain - $sitespec =~ s/^([^:\/]+):(\d+)/$1/; # Remove a port number, to relocate - if ($2) { - $sitespec = "-$2$sitespec"; # Put the port number back in, before the '@' - } - my $threadingmarker; - if ($isnew) { - $threadingmarker = "Message-ID: <bug-$id-" . $user->id . "$sitespec>"; - } - else { - $threadingmarker = "In-Reply-To: <bug-$id-" . $user->id . "$sitespec>" . - "\nReferences: <bug-$id-" . $user->id . "$sitespec>"; - } - - my $vars = { isnew => $isnew, to => $user->email, @@ -678,7 +662,7 @@ sub sendMail { reporter => $values{'reporter'}, reportername => Bugzilla::User->new({name => $values{'reporter'}})->name, diffs => $diffs, - threadingmarker => $threadingmarker + threadingmarker => build_thread_marker($id, $user->id, $isnew), }; my $msg; |