From f2ca5f6a305885fe3018b7d5a7857f0b26a93be0 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Tue, 7 Feb 2023 11:49:05 +0100 Subject: [PATCH] Probably solution for #907 --- plugins/mailbox-detect/index.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/plugins/mailbox-detect/index.php b/plugins/mailbox-detect/index.php index 2ee0eaea2..281f71c3f 100644 --- a/plugins/mailbox-detect/index.php +++ b/plugins/mailbox-detect/index.php @@ -9,8 +9,8 @@ class MailboxDetectPlugin extends \RainLoop\Plugins\AbstractPlugin NAME = 'MailboxDetect', AUTHOR = 'SnappyMail', URL = 'https://snappymail.eu/', - VERSION = '2.2', - RELEASE = '2023-01-23', + VERSION = '2.3', + RELEASE = '2023-02-07', REQUIRED = '2.25.0', CATEGORY = 'General', LICENSE = 'MIT', @@ -137,13 +137,14 @@ class MailboxDetectPlugin extends \RainLoop\Plugins\AbstractPlugin } */ // \error_log("Create mailbox {$sFolderNameToCreate}"); - $oFolder = $oActions->MailClient()->FolderCreate( + $aFolder = $oActions->MailClient()->FolderCreate( $sFolderNameToCreate, $sParent, true, $sDelimiter - ); - $aResponse['Result']['@Collection'][] = \json_encode($oFolder); + )->jsonSerialize(); + $aFolder['role'] = $role; + $aResponse['Result']['@Collection'][] = $aFolder; } catch (\Throwable $oException) {