From: mkanat%bugzilla.org <> Date: Fri, 4 Dec 2009 14:46:45 +0000 (+0000) Subject: Bug 531500: Allow the mailer_before_send hook to modify the arguments passed to Email... X-Git-Tag: bugzilla-3.5.3~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2ee5a822feb4528675d7d0763d231bb7ef9a3ad;p=thirdparty%2Fbugzilla.git Bug 531500: Allow the mailer_before_send hook to modify the arguments passed to Email::Send Patch by Max Kanat-Alexander r=dkl, a=mkanat --- diff --git a/Bugzilla/Hook.pm b/Bugzilla/Hook.pm index 7ee033f865..b042f36ad6 100644 --- a/Bugzilla/Hook.pm +++ b/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/Bugzilla/Mailer.pm b/Bugzilla/Mailer.pm index 71dc8f1f51..fb9c5a7cac 100644 --- a/Bugzilla/Mailer.pm +++ b/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';