diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2011-08-16 02:56:16 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2011-08-16 02:56:16 +0200 |
commit | d9a3904454980dd10f5fddd973e254ab138764b6 (patch) | |
tree | fa6809d2100a2fa7612cec44dfb330194c112c70 /Bugzilla/Config/Common.pm | |
parent | 3a8142ae9f3cd14b6ca54c6db6f6f07fb9025fe8 (diff) | |
download | bugzilla-d9a3904454980dd10f5fddd973e254ab138764b6.tar.gz bugzilla-d9a3904454980dd10f5fddd973e254ab138764b6.tar.xz |
Bug 466419: Add SSL support for SMTP
r/a=mkanat
Diffstat (limited to 'Bugzilla/Config/Common.pm')
-rw-r--r-- | Bugzilla/Config/Common.pm | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Bugzilla/Config/Common.pm b/Bugzilla/Config/Common.pm index 9fffe02ee..17505079f 100644 --- a/Bugzilla/Config/Common.pm +++ b/Bugzilla/Config/Common.pm @@ -51,7 +51,7 @@ use base qw(Exporter); check_user_verify_class check_mail_delivery_method check_notification check_utf8 check_bug_status check_smtp_auth check_theschwartz_available - check_maxattachmentsize check_email + check_maxattachmentsize check_email check_smtp_ssl ); # Checking functions for the various values @@ -350,6 +350,14 @@ sub check_smtp_auth { return ""; } +sub check_smtp_ssl { + my $use_ssl = shift; + if ($use_ssl && !Bugzilla->feature('smtp_ssl')) { + return "SSL support is not available. Run checksetup.pl for more details"; + } + return ""; +} + sub check_theschwartz_available { my $use_queue = shift; if ($use_queue && !Bugzilla->feature('jobqueue')) { |