This commit is contained in:
the-djmaze 2022-12-16 09:45:18 +01:00
parent 26706acf6a
commit 9484ff3cbb
5 changed files with 12 additions and 12 deletions

View file

@ -16,7 +16,7 @@ class ImapContactsSuggestions implements \RainLoop\Providers\Suggestions\ISugges
$oMailClient = $oActions->MailClient();
if (!$oMailClient->IsLoggined()) {
$oAccount = $oActions->getAccountFromToken();
$oAccount->ImapConnectAndLoginHelper($oActions->Plugins(), $oMailClient, $oActions->Config());
$oAccount->ImapConnectAndLoginHelper($oActions->Plugins(), $oMailClient->ImapClient(), $oActions->Config());
}
$oImapClient = $oMailClient->ImapClient();

View file

@ -4,11 +4,11 @@ class ImapContactsSuggestionsPlugin extends \RainLoop\Plugins\AbstractPlugin
{
const
NAME = 'Contacts suggestions (IMAP folder)',
VERSION = '1.0',
RELEASE = '2022-05-18',
VERSION = '1.1',
RELEASE = '2022-12-16',
CATEGORY = 'Contacts',
DESCRIPTION = 'Get contacts suggestions from IMAP INBOX folder.',
REQUIRED = '2.15.2';
REQUIRED = '2.23.0';
public function Init() : void
{

View file

@ -26,7 +26,7 @@ class KolabAddressBook implements \RainLoop\Providers\AddressBook\AddressBookInt
$oActions = \RainLoop\Api::Actions();
$oMailClient = $oActions->MailClient();
if (!$oMailClient->IsLoggined()) {
$oActions->getAccountFromToken()->ImapConnectAndLoginHelper($oActions->Plugins(), $oMailClient, $oActions->Config());
$oActions->getAccountFromToken()->ImapConnectAndLoginHelper($oActions->Plugins(), $oMailClient->ImapClient(), $oActions->Config());
}
return $oMailClient;
}

View file

@ -4,11 +4,11 @@ class KolabPlugin extends \RainLoop\Plugins\AbstractPlugin
{
const
NAME = 'Kolab',
VERSION = '2.1',
RELEASE = '2022-11-23',
VERSION = '2.2',
RELEASE = '2022-12-16',
CATEGORY = 'Contacts',
DESCRIPTION = 'Use an Address Book of Kolab.',
REQUIRED = '2.22.0';
REQUIRED = '2.23.0';
public function Init() : void
{

View file

@ -4,11 +4,11 @@ class NextcloudPlugin extends \RainLoop\Plugins\AbstractPlugin
{
const
NAME = 'Nextcloud',
VERSION = '2.12',
RELEASE = '2022-11-24',
VERSION = '2.13',
RELEASE = '2022-12-16',
CATEGORY = 'Integrations',
DESCRIPTION = 'Integrate with Nextcloud v20+',
REQUIRED = '2.19.0';
REQUIRED = '2.23.0';
public function Init() : void
{
@ -94,7 +94,7 @@ class NextcloudPlugin extends \RainLoop\Plugins\AbstractPlugin
$oMailClient = $oActions->MailClient();
if (!$oMailClient->IsLoggined()) {
$oAccount = $oActions->getAccountFromToken();
$oAccount->ImapConnectAndLoginHelper($oActions->Plugins(), $oMailClient, $oActions->Config());
$oAccount->ImapConnectAndLoginHelper($oActions->Plugins(), $oMailClient->ImapClient(), $oActions->Config());
}
$sSaveFolder = $sSaveFolder ?: 'Emails';