diff --git a/felamimail/inc/class.felamimail_bo.inc.php b/felamimail/inc/class.felamimail_bo.inc.php index 5bb300b33c..d13e08c4a0 100644 --- a/felamimail/inc/class.felamimail_bo.inc.php +++ b/felamimail/inc/class.felamimail_bo.inc.php @@ -3426,7 +3426,7 @@ class felamimail_bo //error_log(__METHOD__." using existing Connection ProfileID:".$_icServerID.' Status:'.print_r($this->icServer->_connected,true)); } else { //error_log( "-------------------------->open connection for Server with profileID:".$_icServerID.function_backtrace()); - $tretval = $this->icServer->openConnection($_adminConnection,5); + $tretval = $this->icServer->openConnection($_adminConnection); if ( PEAR::isError($tretval) || $tretval===false) { $isError[$_icServerID] = ($tretval?$tretval->message:$this->icServer->_connectionErrorObject->message); diff --git a/notifications/inc/class.notifications_ajax.inc.php b/notifications/inc/class.notifications_ajax.inc.php index 061e4e3373..a032d389b6 100644 --- a/notifications/inc/class.notifications_ajax.inc.php +++ b/notifications/inc/class.notifications_ajax.inc.php @@ -165,8 +165,9 @@ class notifications_ajax { $bufferFMailSession = $bofelamimail->sessionData; if( !$bofelamimail->openConnection($activeProfile) ) { // TODO: This is ugly. Log a bit nicer! - error_log(__METHOD__.__LINE__.' # '.$bofelamimail->getErrorMessage()); + $error = $bofelamimail->getErrorMessage(); error_log(__METHOD__.__LINE__.' # '.self::_appname.' (user: '.$this->recipient->account_lid.'): cannot connect to mailbox with Profile:'.$activeProfile.'. Please check your prefs!'); + if (!empty($error)) error_log(__METHOD__.__LINE__.' # '.$error); error_log(__METHOD__.__LINE__.' # Instance='.$GLOBALS['egw_info']['user']['domain'].', User='.$GLOBALS['egw_info']['user']['account_lid']); return false; // cannot connect to mailbox }