summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Config.pm
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2014-09-20 14:17:14 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2014-09-20 14:17:14 +0200
commit5d96fa703d3d9a17b39c910f3f00c6bf60b0363c (patch)
tree18a01c00aac67c08902cb823435e50db173af25a /Bugzilla/Config.pm
parent917ede930a27180b6e6adeb16a46efc8156d36cc (diff)
downloadbugzilla-5d96fa703d3d9a17b39c910f3f00c6bf60b0363c.tar.gz
bugzilla-5d96fa703d3d9a17b39c910f3f00c6bf60b0363c.tar.xz
Bug 502625: Replace Email::Send with Email::Sender
r=dylan a=glob
Diffstat (limited to 'Bugzilla/Config.pm')
-rw-r--r--Bugzilla/Config.pm23
1 files changed, 13 insertions, 10 deletions
diff --git a/Bugzilla/Config.pm b/Bugzilla/Config.pm
index 7ec80e1ab..fdbedbdc0 100644
--- a/Bugzilla/Config.pm
+++ b/Bugzilla/Config.pm
@@ -185,16 +185,19 @@ sub update_params {
}
# Old mail_delivery_method choices contained no uppercase characters
- if (exists $param->{'mail_delivery_method'}
- && $param->{'mail_delivery_method'} !~ /[A-Z]/) {
- my $method = $param->{'mail_delivery_method'};
- my %translation = (
- 'sendmail' => 'Sendmail',
- 'smtp' => 'SMTP',
- 'qmail' => 'Qmail',
- 'testfile' => 'Test',
- 'none' => 'None');
- $param->{'mail_delivery_method'} = $translation{$method};
+ my $mta = $param->{'mail_delivery_method'};
+ if ($mta) {
+ if ($mta !~ /[A-Z]/) {
+ my %translation = (
+ 'sendmail' => 'Sendmail',
+ 'smtp' => 'SMTP',
+ 'qmail' => 'Qmail',
+ 'testfile' => 'Test',
+ 'none' => 'None');
+ $param->{'mail_delivery_method'} = $translation{$mta};
+ }
+ # This will force the parameter to be reset to its default value.
+ delete $param->{'mail_delivery_method'} if $param->{'mail_delivery_method'} eq 'Qmail';
}
# Convert the old "ssl" parameter to the new "ssl_redirect" parameter.