[Bugzilla] Add product and component header in notification mails.
Jan Zerebecki
jan.wine at zerebecki.de
Thu Mar 15 19:35:23 CDT 2007
Seems like our old bugzilla also needs the arguments added in
another place.
Patches from
https://bugzilla.mozilla.org/attachment.cgi?id=164158 and
https://bugzilla.mozilla.org/attachment.cgi?id=192338 .
---
I hope it works, this time. Please also change the configuration
accordingly.
---
If this patch is rejected from inclusion, please tell me why, as
I would have to ask anyway.
Bugzilla/BugMail.pm | 2 ++
defparams.pl | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm
index 55c8800..caba682 100644
--- a/Bugzilla/BugMail.pm
+++ b/Bugzilla/BugMail.pm
@@ -855,6 +855,8 @@ sub NewProcessOnePerson ($$$$$$$$$$$$$) {
} else {
$substs{"diffs"} = $difftext . "\n\n" . $newcomments;
}
+ $substs{"product"} = $values{'product'};
+ $substs{"component"} = $values{'component'};
$substs{"summary"} = $values{'short_desc'};
$substs{"reasonsheader"} = join(" ", @reasons);
$substs{"reasonsbody"} = $reasonsbody;
diff --git a/defparams.pl b/defparams.pl
index 15232ad..fa9e63a 100755
--- a/defparams.pl
+++ b/defparams.pl
@@ -494,6 +494,8 @@ To use the wonders of Bugzilla, you can use the following:
To: %to%
Subject: [Bug %bugid%] %neworchanged%%summary%
X-Bugzilla-Reason: %reasonsheader%
+X-Bugzilla-Product: %product%
+X-Bugzilla-Component: %component%
%urlbase%show_bug.cgi?id=%bugid%
More information about the wine-patches
mailing list