Move the Kolab Contacts Suggestions test to be IMAP Contacts Suggestions

This commit is contained in:
the-djmaze 2022-05-17 17:15:20 +02:00
parent ddb95b925d
commit 86ac71ea2e
3 changed files with 9 additions and 15 deletions

View file

@ -1,39 +0,0 @@
<?php
class KolabPlugin extends \RainLoop\Plugins\AbstractPlugin
{
const
NAME = 'Kolab',
VERSION = '0.1',
RELEASE = '2022-05-13',
CATEGORY = 'Security',
DESCRIPTION = 'Get contacts suggestions from Kolab.',
REQUIRED = '2.15.2';
public function Init() : void
{
$this->addHook('main.fabrica', 'MainFabrica');
}
public function Supported() : string
{
return '';
}
/**
* @param mixed $mResult
*/
public function MainFabrica(string $sName, &$mResult)
{
if ('suggestions' === $sName) {
if (!\is_array($mResult)) {
$mResult = array();
}
// $sFolder = \trim($this->Config()->Get('plugin', 'mailbox', ''));
// if ($sFolder) {
include_once __DIR__ . '/KolabContactsSuggestions.php';
$mResult[] = new KolabContactsSuggestions();
// }
}
}
}