diff options
Diffstat (limited to 'Bugzilla/User.pm')
-rw-r--r-- | Bugzilla/User.pm | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index 8526c42d7..259a7ea90 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -1834,7 +1834,19 @@ sub wants_bug_mail { if ($wants_mail && $bug->bug_status eq 'UNCONFIRMED') { $wants_mail &= $self->wants_mail([EVT_UNCONFIRMED], $relationship); } - + + # BMO: add a hook to allow custom bugmail filtering + Bugzilla::Hook::process("user_wants_mail", { + user => $self, + wants_mail => \$wants_mail, + bug => $bug, + relationship => $relationship, + fieldDiffs => $fieldDiffs, + comments => $comments, + dep_mail => $dep_mail, + changer => $changer, + }); + return $wants_mail; } |