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

@ -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());