From: <lei...@us...> - 2012-08-29 09:49:36
|
Author: leithoff Date: Wed Aug 29 11:49:26 2012 New Revision: 40207 URL: http://svn.stylite.de/viewvc/egroupware?rev=40207&view=rev Log: Send ->HTTP/1.1 500 Internal Server Error<- to device on connection failure Modified: trunk/felamimail/inc/class.felamimail_activesync.inc.php Modified: trunk/felamimail/inc/class.felamimail_activesync.inc.php URL: http://svn.stylite.de/viewvc/egroupware/trunk/felamimail/inc/class.felamimail_activesync.inc.php?rev=40207&r1=40206&r2=40207&view=diff ============================================================================== --- trunk/felamimail/inc/class.felamimail_activesync.inc.php (original) +++ trunk/felamimail/inc/class.felamimail_activesync.inc.php Wed Aug 29 11:49:26 2012 @@ -278,6 +278,11 @@ if (!$this->mail->openConnection(self::$profileID,false)) { error_log(__METHOD__.__LINE__."($account) can not open connection!".$this->mail->getErrorMessage()); + //error_log(date('Y-m-d H:i:s').' '.__METHOD__.__LINE__."($account) can not open connection!".$this->mail->getErrorMessage()."\n",3,'/var/lib/egroupware/esync-imap.log'); + //error_log('# Instance='.$GLOBALS['egw_info']['user']['domain'].', User='.$GLOBALS['egw_info']['user']['account_lid'].', URL='. + // ($_SERVER['HTTPS']?'https://':'http://').$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']."\n\n",3,'/var/lib/egroupware/esync-imap.log'); + header("HTTP/1.1 500 Internal Server Error"); + //die('Mail not or mis-configured!'); throw new egw_exception_not_found(__METHOD__."($account) can not open connection!"); } } @@ -289,6 +294,11 @@ if (!$this->mail->openConnection(self::$profileID,false)) { error_log(__METHOD__.__LINE__."($account) can not open connection!".$this->mail->getErrorMessage()); + //error_log(date('Y-m-d H:i:s').' '.__METHOD__.__LINE__."($account) can not open connection!".$this->mail->getErrorMessage()."\n",3,'/var/lib/egroupware/esync-imap.log'); + //error_log('# Instance='.$GLOBALS['egw_info']['user']['domain'].', User='.$GLOBALS['egw_info']['user']['account_lid'].', URL='. + // ($_SERVER['HTTPS']?'https://':'http://').$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']."\n\n",3,'/var/lib/egroupware/esync-imap.log'); + header("HTTP/1.1 500 Internal Server Error"); + //die('Mail not or mis-configured!'); throw new egw_exception_not_found(__METHOD__."($account) can not open connection!"); } } |