diff --git a/mozilla/webtools/bugzilla/Bugzilla/Hook.pm b/mozilla/webtools/bugzilla/Bugzilla/Hook.pm index 7ee033f8651..b042f36ad68 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/Hook.pm +++ b/mozilla/webtools/bugzilla/Bugzilla/Hook.pm @@ -482,6 +482,9 @@ Params: =item C - The C object that's about to be sent. +=item C - An arrayref that's passed as C to +L. + =back =head2 object_before_create diff --git a/mozilla/webtools/bugzilla/Bugzilla/Mailer.pm b/mozilla/webtools/bugzilla/Bugzilla/Mailer.pm index 71dc8f1f51f..fb9c5a7cac3 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/Mailer.pm +++ b/mozilla/webtools/bugzilla/Bugzilla/Mailer.pm @@ -171,7 +171,8 @@ sub MessageToMTA { Debug => Bugzilla->params->{'smtp_debug'}; } - Bugzilla::Hook::process('mailer_before_send', { email => $email }); + Bugzilla::Hook::process('mailer_before_send', + { email => $email, mailer_args => \@args }); if ($method eq "Test") { my $filename = bz_locations()->{'datadir'} . '/mailer.testfile';