mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-04 23:17:02 +03:00
Sieve filters (beta)
This commit is contained in:
parent
94789632f0
commit
929bffccef
45 changed files with 1599 additions and 403 deletions
|
|
@ -38,8 +38,21 @@ class Filters extends \RainLoop\Providers\AbstractProvider
|
|||
*/
|
||||
public function Save($oAccount, $aFilters, $sRaw = '', $bRawIsActive = false)
|
||||
{
|
||||
return $this->IsActive() ? $this->oDriver->Save($oAccount,
|
||||
$aFilters, $sRaw, $bRawIsActive) : false;
|
||||
try
|
||||
{
|
||||
return $this->IsActive() ? $this->oDriver->Save(
|
||||
$oAccount, $aFilters, $sRaw, $bRawIsActive) : false;
|
||||
}
|
||||
catch (\MailSo\Net\Exceptions\SocketCanNotConnectToHostException $oException)
|
||||
{
|
||||
throw new \RainLoop\Exceptions\ClientException(\RainLoop\Notifications::ConnectionError, $oException);
|
||||
}
|
||||
catch (\Exception $oException)
|
||||
{
|
||||
throw new \RainLoop\Exceptions\ClientException(\RainLoop\Notifications::CantSaveFilters, $oException);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue