summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2010-07-21 07:55:20 +0000
committerthomascube <thomas@roundcube.net>2010-07-21 07:55:20 +0000
commit904809459d8cd0e92f63fb2f50ab5f6bd1b9493e (patch)
treea1bdeb85abe47e04c87d000c875a1f7520c659b9 /program/include
parentf0ac2b993702ab508b98f6b302c1aa7e96eee767 (diff)
Fix default IMAP port configuration (#1486864)
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcmail.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index d644f4f09..3fa2fa2cc 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -585,7 +585,7 @@ class rcmail
$imap_ssl = (isset($a_host['scheme']) && in_array($a_host['scheme'], array('ssl','imaps','tls'))) ? $a_host['scheme'] : null;
if(!empty($a_host['port']))
$imap_port = $a_host['port'];
- else if ($imap_ssl && $imap_ssl != 'tls')
+ else if ($imap_ssl && $imap_ssl != 'tls' && (!$config['default_port'] || $config['default_port'] == 143))
$imap_port = 993;
}