From d2ee5a822feb4528675d7d0763d231bb7ef9a3ad Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Fri, 4 Dec 2009 14:46:45 +0000 Subject: 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 --- Bugzilla/Mailer.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Bugzilla/Mailer.pm') diff --git a/Bugzilla/Mailer.pm b/Bugzilla/Mailer.pm index 71dc8f1f5..fb9c5a7ca 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'; -- cgit v1.2.3-24-g4f1b