Closed Bug 545683 Opened 14 years ago Closed 14 years ago

New Hook: bugmail_recipients

Categories

(Bugzilla :: Extensions, enhancement)

3.5.3
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.6

People

(Reporter: mkanat, Assigned: mkanat)

References

Details

Attachments

(2 files)

Hooks need to be able to add new direct recipients to bugmails, and modify existing recipients.
Attached patch v1Splinter Review
Here we go! Right now it only passes "recipients", because that's all I need for the Voting extension, but if somebody needs $diffs in the future, we can pass that too. I'm just hesitant at the moment because $diffs is such a complex data structure that will probably eventually be replaced by a Bugzilla::ChangeSet.
Assignee: extensions → mkanat
Status: NEW → ASSIGNED
Attachment #426534 - Flags: review+
Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/trunk/                                                                                               
modified Bugzilla/BugMail.pm
modified Bugzilla/Hook.pm
modified extensions/Example/Extension.pm
Committed revision 6986.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Oh, wait, I also need a $bug argument.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Okay, this does it.
Attachment #426538 - Flags: review+
Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/trunk/                                                                                               
modified Bugzilla/BugMail.pm
modified Bugzilla/Hook.pm
modified extensions/Example/Extension.pm
Committed revision 6987.
Status: REOPENED → RESOLVED
Closed: 14 years ago14 years ago
Resolution: --- → FIXED
reed requested a backport to 3.6, and this hook is pretty non-invasive, so that seems reasonable.
Status: RESOLVED → REOPENED
Flags: approval3.6+
Flags: approval+
Resolution: FIXED → ---
Target Milestone: Bugzilla 3.8 → Bugzilla 3.6
Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/3.6/                                                                                                 
modified Bugzilla/BugMail.pm
modified Bugzilla/Hook.pm
modified extensions/Example/Extension.pm
Committed revision 6973.
Status: REOPENED → RESOLVED
Closed: 14 years ago14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: