summaryrefslogtreecommitdiff
path: root/lib/Kolab/FreeBusy/SourceIMAP.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Kolab/FreeBusy/SourceIMAP.php')
-rw-r--r--lib/Kolab/FreeBusy/SourceIMAP.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/Kolab/FreeBusy/SourceIMAP.php b/lib/Kolab/FreeBusy/SourceIMAP.php
index 6536a4b..6f116b7 100644
--- a/lib/Kolab/FreeBusy/SourceIMAP.php
+++ b/lib/Kolab/FreeBusy/SourceIMAP.php
@@ -292,7 +292,15 @@ class SourceIMAP extends Source
$imap = $rcube->get_storage();
$host = $config['host'];
$port = $config['port'] ?: ($config['scheme'] == 'imaps' ? 993 : 143);
- $ssl = $config['scheme'] == 'imaps' || $port == 993;
+
+ // detect ssl|tls method
+ if ($config['scheme'] == 'imaps' || $port == 993) {
+ $ssl = 'imaps';
+ } elseif ($config['scheme'] == 'tls') {
+ $ssl = 'tls';
+ } else {
+ $ssl = false;
+ }
// enable proxy authentication
if (!empty($config['proxy_auth'])) {