summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Morley [:edmorley UTC+0] <emorley@mozilla.com>2014-06-23 18:26:16 +0200
committerByron Jones <glob@mozilla.com>2014-06-23 18:26:16 +0200
commitd7b36fd116b0d0e15b591ff406410dc4a9fdc0e5 (patch)
tree0a32e0eee69470fe003409301bea7d831d192222
parentea5e2e6a162aad3020e439b075419ad2156ee648 (diff)
downloadbugzilla-d7b36fd116b0d0e15b591ff406410dc4a9fdc0e5.tar.gz
bugzilla-d7b36fd116b0d0e15b591ff406410dc4a9fdc0e5.tar.xz
Bug 1027638: Use product/component in subject of secure bugs rather than duplicating the bug number
-rw-r--r--extensions/SecureMail/Extension.pm4
1 files changed, 3 insertions, 1 deletions
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);
}
}