diff --git a/api/src/Mail.php b/api/src/Mail.php index 4e4d56d44f..5f83d84086 100644 --- a/api/src/Mail.php +++ b/api/src/Mail.php @@ -1000,9 +1000,7 @@ class Mail */ static function getTimeOut($_use='IMAP') { - $timeout = $GLOBALS['egw_info']['user']['preferences']['mail']['connectionTimeout']; - if (empty($timeout)) $timeout = ($_use=='SIEVE'?10:20); // this is the default value - return $timeout; + return $_use=='SIEVE' ? 10 : 20; // this is the default value } /** diff --git a/api/src/Mail/Imap.php b/api/src/Mail/Imap.php index b24eb9f8ed..fcc545d176 100644 --- a/api/src/Mail/Imap.php +++ b/api/src/Mail/Imap.php @@ -360,9 +360,7 @@ class Imap extends Horde_Imap_Client_Socket implements Imap\PushIface */ static function getTimeOut($_use='IMAP') { - if (empty($timeout = $GLOBALS['egw_info']['user']['preferences']['mail']['connectionTimeout']) || !((int)$timeout > 0)) - $timeout = $_use == 'SIEVE' ? 10 : 20; // this is the default value - return $timeout; + return $_use == 'SIEVE' ? 10 : 20; // this is the default value } /**