mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 16:33:17 +01:00
Send ->HTTP/1.1 500 Internal Server Error<- to device on connection failure
This commit is contained in:
parent
8e9a616e9f
commit
3319c3bd3f
@ -277,9 +277,10 @@ class felamimail_activesync implements activesync_plugin_write, activesync_plugi
|
||||
//error_log(__METHOD__.__LINE__.' create object with ProfileID:'.array2string(self::$profileID));
|
||||
if (!$this->mail->openConnection(self::$profileID,false))
|
||||
{
|
||||
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');
|
||||
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!");
|
||||
@ -292,9 +293,10 @@ class felamimail_activesync implements activesync_plugin_write, activesync_plugi
|
||||
{
|
||||
if (!$this->mail->openConnection(self::$profileID,false))
|
||||
{
|
||||
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');
|
||||
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!");
|
||||
|
Loading…
Reference in New Issue
Block a user