From d8e53a5aab50e4c5c26e1ac67145057cb267af3a Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 7 Jun 2006 06:49:08 +0000 Subject: [PATCH] fix to NOT use tls for IMAP --- phpgwapi/inc/class.auth_mail.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.auth_mail.inc.php b/phpgwapi/inc/class.auth_mail.inc.php index a350d7d1ea..349ecd6e57 100644 --- a/phpgwapi/inc/class.auth_mail.inc.php +++ b/phpgwapi/inc/class.auth_mail.inc.php @@ -29,6 +29,7 @@ function authenticate($username, $passwd) { + $notls = '/notls'; if ($GLOBALS['egw_info']['server']['mail_login_type'] == 'vmailmgr') { $username = $username . '@' . $GLOBALS['egw_info']['server']['mail_suffix']; @@ -44,6 +45,7 @@ elseif ($GLOBALS['egw_info']['server']['mail_server_type']=='imaps') { $GLOBALS['egw_info']['server']['mail_port'] = '993'; + $notls = ''; } elseif ($GLOBALS['egw_info']['server']['mail_server_type']=='pop3s') { @@ -71,7 +73,7 @@ { /* assume imap */ $mailauth = imap_open('{'.$GLOBALS['egw_info']['server']['mail_server'] - .':'.$GLOBALS['egw_info']['server']['mail_port'].'}INBOX', $username , $passwd); + .':'.$GLOBALS['egw_info']['server']['mail_port'].$notls.'}INBOX', $username , $passwd); } if ($mailauth == False)