summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Mailer.pm
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-03-12 22:02:09 +0100
committerGitHub <noreply@github.com>2018-03-12 22:02:09 +0100
commit9a8e6dd21f64b0242939c2abf789e274995b4ded (patch)
tree63e6b0824077edcebdec24c8c54116667718935a /Bugzilla/Mailer.pm
parentb6ffa8dec3bd7b14f8096a60ad9740ccda92a044 (diff)
downloadbugzilla-9a8e6dd21f64b0242939c2abf789e274995b4ded.tar.gz
bugzilla-9a8e6dd21f64b0242939c2abf789e274995b4ded.tar.xz
Bug 1437238 - Create override parameters for mailer configuration
Diffstat (limited to 'Bugzilla/Mailer.pm')
-rw-r--r--Bugzilla/Mailer.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/Bugzilla/Mailer.pm b/Bugzilla/Mailer.pm
index 6e46d1862..e245a05e0 100644
--- a/Bugzilla/Mailer.pm
+++ b/Bugzilla/Mailer.pm
@@ -37,10 +37,10 @@ use Bugzilla::Version qw(vers_cmp);
sub MessageToMTA {
my ($msg, $send_now) = (@_);
- my $method = Bugzilla->params->{'mail_delivery_method'};
+ my $method = Bugzilla->get_param_with_override('mail_delivery_method');
return if $method eq 'None';
- if (Bugzilla->params->{'use_mailer_queue'} and !$send_now) {
+ if (Bugzilla->get_param_with_override('use_mailer_queue') and !$send_now) {
Bugzilla->job_queue->insert('send_mail', { msg => $msg });
return;
}
@@ -66,7 +66,7 @@ sub MessageToMTA {
}
# Ensure that we are not sending emails too quickly to recipients.
- if (Bugzilla->params->{use_mailer_queue}
+ if (Bugzilla->get_param_with_override('use_mailer_queue')
&& (EMAIL_LIMIT_PER_MINUTE || EMAIL_LIMIT_PER_HOUR))
{
$dbh->do(
@@ -226,7 +226,7 @@ sub MessageToMTA {
}
# insert into email_rates
- if (Bugzilla->params->{use_mailer_queue}
+ if (Bugzilla->get_param_with_override('use_mailer_queue')
&& (EMAIL_LIMIT_PER_MINUTE || EMAIL_LIMIT_PER_HOUR))
{
$dbh->do(