Merged from sub repository (filters - step 4)

This commit is contained in:
RainLoop Team 2014-12-18 00:53:46 +04:00
parent 67e45a6a6f
commit e4b286e257
58 changed files with 1176 additions and 236 deletions

View file

@ -2031,6 +2031,28 @@ class Actions
return false;
}
/**
* @return array
*
* @throws \MailSo\Base\Exceptions\Exception
*/
public function DoFilters()
{
return $this->TrueResponse(__FUNCTION__);
}
/**
* @return array
*
* @throws \MailSo\Base\Exceptions\Exception
*/
public function DoFiltersSave()
{
sleep(2);
return $this->TrueResponse(__FUNCTION__);
}
/**
* @return array
*
@ -2246,6 +2268,35 @@ class Actions
));
}
/**
* @return array
*
* @throws \MailSo\Base\Exceptions\Exception
*/
public function DoAccountsCounts()
{
$oAccount = $this->getAccountFromToken();
$aCounts = array();
if ($this->Config()->Get('webmail', 'allow_additional_accounts', true))
{
$mAccounts = $this->GetAccounts($oAccount);
foreach ($mAccounts as $sEmail => $sHash)
{
$aCounts[] = array(\MailSo\Base\Utils::IdnToUtf8($sEmail), 0);
}
}
else
{
$aCounts[] = array(\MailSo\Base\Utils::IdnToUtf8($oAccount->Email()), 0);
}
return $this->DefaultResponse(__FUNCTION__, array(
'Complete' => true,
'Counts' => $aCounts
));
}
/**
* @return array
*