mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-25 18:19:22 +03:00
Code refactoring (promises for folders management)
This commit is contained in:
parent
9bec1d0a8f
commit
bab64a7cea
19 changed files with 467 additions and 333 deletions
|
|
@ -5009,6 +5009,9 @@ class Actions
|
|||
*/
|
||||
public function DoFolders()
|
||||
{
|
||||
// \sleep(1);
|
||||
// throw new \RainLoop\Exceptions\ClientException(\RainLoop\Notifications::MailServerError);
|
||||
|
||||
$sRawKey = (string) $this->GetActionParam('RawKey', '');
|
||||
if (0 < \strlen($sRawKey))
|
||||
{
|
||||
|
|
@ -5153,6 +5156,9 @@ class Actions
|
|||
*/
|
||||
public function DoFolderCreate()
|
||||
{
|
||||
// \sleep(1);
|
||||
// throw new \RainLoop\Exceptions\ClientException(\RainLoop\Notifications::CantCreateFolder);
|
||||
|
||||
$this->initMailClientConnection();
|
||||
|
||||
try
|
||||
|
|
@ -5232,6 +5238,9 @@ class Actions
|
|||
*/
|
||||
public function DoFolderDelete()
|
||||
{
|
||||
// \sleep(1);
|
||||
// throw new \RainLoop\Exceptions\ClientException(\RainLoop\Notifications::CantRenameFolder);
|
||||
|
||||
$this->initMailClientConnection();
|
||||
|
||||
$sFolderFullNameRaw = $this->GetActionParam('Folder', '');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue