mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 14:37:02 +03:00
Pre release fixes and improvements
This commit is contained in:
parent
67c5e31e58
commit
abddb3d828
61 changed files with 378 additions and 57 deletions
|
|
@ -2085,6 +2085,18 @@ class Actions
|
|||
public function DoFilters()
|
||||
{
|
||||
$oAccount = $this->getAccountFromToken();
|
||||
|
||||
$aFakeFilters = null;
|
||||
|
||||
$this->Plugins()
|
||||
->RunHook('filter.filters-fake', array($oAccount, &$aFakeFilters))
|
||||
;
|
||||
|
||||
if ($aFakeFilters)
|
||||
{
|
||||
return $this->DefaultResponse(__FUNCTION__, $aFakeFilters);
|
||||
}
|
||||
|
||||
return $this->DefaultResponse(__FUNCTION__,
|
||||
$this->FiltersProvider()->Load($oAccount, $oAccount->DomainSieveAllowRaw()));
|
||||
}
|
||||
|
|
@ -2116,6 +2128,10 @@ class Actions
|
|||
}
|
||||
}
|
||||
|
||||
$this->Plugins()
|
||||
->RunHook('filter.filters-save', array($oAccount, &$aFilters, &$sRaw, &$bRawIsActive))
|
||||
;
|
||||
|
||||
return $this->DefaultResponse(__FUNCTION__, $this->FiltersProvider()->Save($oAccount,
|
||||
$aFilters, $sRaw, $bRawIsActive));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue