#!/usr/bin/php Set('ssl', 'verify_certificate', false); // https://github.com/usmannasir/cyberpanel/blob/f7e4f5d91cb2b40473ae6ceb4ca473493ab3bb0c/install/install.py#L1354 $oConfig->Set('plugins', 'enable', true); /** * Install mailbox-detect extension */ SnappyMail\Repository::installPackage('plugin', 'mailbox-detect'); /** * Enable mailbox-detect autocreate_system_folders * https://github.com/usmannasir/cyberpanel/blob/f7e4f5d91cb2b40473ae6ceb4ca473493ab3bb0c/install/install.py#L1363 */ $oPlugin = RainLoop\Api::Actions()->Plugins()->CreatePluginByName('mailbox-detect'); if ($oPlugin) { $oPluginConfig = $oPlugin->Config(); $oPluginConfig->Set('plugin', 'autocreate_system_folders', true); $oPluginConfig->Save(); } /** * Enable mailbox-detect extension * https://github.com/usmannasir/cyberpanel/blob/f7e4f5d91cb2b40473ae6ceb4ca473493ab3bb0c/install/install.py#L1363 */ $aList = SnappyMail\Repository::getEnabledPackagesNames(); $aList[] = 'mailbox-detect'; $oConfig->Set('plugins', 'enabled_list', implode(',', array_unique($aList))); // v2.5.4 //\SnappyMail\Repository::enablePackage('mailbox-detect'); $oConfig->Save();