Merge branch 'upstream/master' into dev/sync-nextcloud-addressbook

This commit is contained in:
Fahim Salam Chowdhury 2024-08-23 16:27:28 +06:00
commit 957654c746
1528 changed files with 85567 additions and 32765 deletions

View file

@ -345,7 +345,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
);
@ -366,7 +366,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.37',
RELEASE = '2024-03-29',
CATEGORY = 'Contacts',
DESCRIPTION = 'Use an Address Book of Kolab.',
REQUIRED = '2.26.0';
REQUIRED = '2.36.0';
public function Init() : void
{

View file

@ -0,0 +1,5 @@
{
"KOLAB": {
"CONTACTS_FOLDER": "Dossier Contacts"
}
}

View file

@ -1,5 +0,0 @@
{
"KOLAB": {
"CONTACTS_FOLDER": "Contacts Folder"
}
}

View file

@ -1,5 +0,0 @@
{
"KOLAB": {
"CONTACTS_FOLDER": "Contacts Folder"
}
}

View file

@ -1,5 +1,5 @@
{
"KOLAB": {
"CONTACTS_FOLDER": "Contacts Folder"
"CONTACTS_FOLDER": "聯絡人名刺夾"
}
}