Rename MessageSimple* commands to Message*

This commit is contained in:
the-djmaze 2024-03-19 19:49:11 +01:00
parent 173a172cf8
commit 94aa2f11c4
10 changed files with 30 additions and 24 deletions

View file

@ -24,7 +24,7 @@ class ImapContactsSuggestions implements \RainLoop\Providers\Suggestions\ISugges
$sQuery = \MailSo\Imap\SearchCriterias::escapeSearchString($oImapClient, $sQuery);
$aUids = \array_slice(
$oImapClient->MessageSimpleSearch("FROM {$sQuery}"),
$oImapClient->MessageSearch("FROM {$sQuery}"),
0, $iLimit
);

View file

@ -4,11 +4,11 @@ class ImapContactsSuggestionsPlugin extends \RainLoop\Plugins\AbstractPlugin
{
const
NAME = 'Contacts suggestions (IMAP folder)',
VERSION = '1.2',
RELEASE = '2023-01-17',
VERSION = '2.36',
RELEASE = '2024-03-19',
CATEGORY = 'Contacts',
DESCRIPTION = 'Get contacts suggestions from IMAP INBOX folder.',
REQUIRED = '2.24.6';
REQUIRED = '2.36.0';
public function Init() : void
{

View file

@ -340,7 +340,7 @@ class KolabAddressBook implements \RainLoop\Providers\AddressBook\AddressBookInt
$sSearch = \MailSo\Imap\SearchCriterias::escapeSearchString($this->ImapClient(), $sSearch);
$aUids = \array_slice(
$this->ImapClient()->MessageSimpleSearch("FROM {$sSearch}"),
$this->ImapClient()->MessageSearch("FROM {$sSearch}"),
0, $iLimit
);
@ -361,7 +361,7 @@ class KolabAddressBook implements \RainLoop\Providers\AddressBook\AddressBookInt
if ($bCreateAuto) {
foreach ($aEmails as $sEmail => $sAddress) {
$sSearch = \MailSo\Imap\SearchCriterias::escapeSearchString($this->ImapClient(), $sEmail);
if (!$this->ImapClient()->MessageSimpleSearch("FROM {$sSearch}")) {
if (!$this->ImapClient()->MessageSearch("FROM {$sSearch}")) {
$oVCard = new VCard;
$oVCard->add('EMAIL', $sEmail);
$sFullName = \trim(\MailSo\Mime\Email::Parse(\trim($sAddress))->GetDisplayName());

View file

@ -4,11 +4,11 @@ class KolabPlugin extends \RainLoop\Plugins\AbstractPlugin
{
const
NAME = 'Kolab',
VERSION = '2.6',
RELEASE = '2023-02-10',
VERSION = '2.36',
RELEASE = '2024-03-19',
CATEGORY = 'Contacts',
DESCRIPTION = 'Use an Address Book of Kolab.',
REQUIRED = '2.26.0';
REQUIRED = '2.36.0';
public function Init() : void
{