mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 03:29:20 +03:00
Bugfix: Kolab AddressBook failed due to past changes
This commit is contained in:
parent
e9504baa12
commit
5ff8b28a12
3 changed files with 13 additions and 3 deletions
|
|
@ -58,12 +58,12 @@ class KolabAddressBook implements \RainLoop\Providers\AddressBook\AddressBookInt
|
|||
$xCard = null;
|
||||
try {
|
||||
foreach ($oMessage->Attachments() ?: [] as $oAttachment) {
|
||||
if ('application/vcard+xml' === $oAttachment->MimeType()) {
|
||||
if ('application/vcard+xml' === $oAttachment->ContentType()) {
|
||||
$result = $this->MailClient()->MessageMimeStream(function ($rResource) use (&$xCard) {
|
||||
if (\is_resource($rResource)) {
|
||||
$xCard = \Sabre\VObject\Reader::readXML($rResource);
|
||||
}
|
||||
}, $this->sFolderName, $oMessage->Uid(), $oAttachment->MimeIndex());
|
||||
}, $this->sFolderName, $oMessage->Uid(), $oAttachment->PartID());
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ class KolabPlugin extends \RainLoop\Plugins\AbstractPlugin
|
|||
RELEASE = '2023-01-03',
|
||||
CATEGORY = 'Contacts',
|
||||
DESCRIPTION = 'Use an Address Book of Kolab.',
|
||||
REQUIRED = '2.24.4';
|
||||
REQUIRED = '2.24.5';
|
||||
|
||||
public function Init() : void
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue