From d7b36fd116b0d0e15b591ff406410dc4a9fdc0e5 Mon Sep 17 00:00:00 2001 From: "Ed Morley [:edmorley UTC+0]" Date: Tue, 24 Jun 2014 00:26:16 +0800 Subject: Bug 1027638: Use product/component in subject of secure bugs rather than duplicating the bug number --- extensions/SecureMail/Extension.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'extensions') diff --git a/extensions/SecureMail/Extension.pm b/extensions/SecureMail/Extension.pm index 2a2ba05f0..7bd0ccc5f 100644 --- a/extensions/SecureMail/Extension.pm +++ b/extensions/SecureMail/Extension.pm @@ -550,7 +550,9 @@ sub _make_secure { # 'bug' to something else. However, it could break if they change # the format of the subject line in another way. my $new = $add_new ? ' New:' : ''; - $subject =~ s/($bug_id\])\s+(.*)$/$1$new (Secure bug $bug_id updated)/; + my $product = $email->header('X-Bugzilla-Product'); + my $component = $email->header('X-Bugzilla-Component'); + $subject =~ s/($bug_id\])\s+(.*)$/$1$new (Secure bug in $product :: $component)/; $email->header_set('Subject', $subject); } } -- cgit v1.2.3-24-g4f1b