mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-18 12:41:10 +01:00
Try to catch exceptions in sieve connection
This commit is contained in:
parent
623a6ed5f7
commit
ff1878f6cf
@ -1107,6 +1107,7 @@ class emailadmin_imap extends Horde_Imap_Client_Socket implements defaultimap
|
|||||||
case 'retrieveRules':
|
case 'retrieveRules':
|
||||||
case 'getVacation':
|
case 'getVacation':
|
||||||
case 'setVacation':
|
case 'setVacation':
|
||||||
|
try {
|
||||||
if (is_null($this->sieve))
|
if (is_null($this->sieve))
|
||||||
{
|
{
|
||||||
PEAR::setErrorHandling(PEAR_ERROR_EXCEPTION);
|
PEAR::setErrorHandling(PEAR_ERROR_EXCEPTION);
|
||||||
@ -1114,6 +1115,10 @@ class emailadmin_imap extends Horde_Imap_Client_Socket implements defaultimap
|
|||||||
$this->error =& $this->sieve->error;
|
$this->error =& $this->sieve->error;
|
||||||
}
|
}
|
||||||
$ret = call_user_func_array(array($this->sieve,$name),$params);
|
$ret = call_user_func_array(array($this->sieve,$name),$params);
|
||||||
|
}
|
||||||
|
catch(Exception $e) {
|
||||||
|
throw new PEAR_Exception('Error in Sieve: '.$e->getMessage(), $e);
|
||||||
|
}
|
||||||
//error_log(__CLASS__.'->'.$name.'('.array2string($params).') returns '.array2string($ret));
|
//error_log(__CLASS__.'->'.$name.'('.array2string($params).') returns '.array2string($ret));
|
||||||
return $ret;
|
return $ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user