mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-09-20 15:45:55 +08:00
Bugfix: Kolab AddressBook failed due to past changes
This commit is contained in:
parent
e9504baa12
commit
5ff8b28a12
|
@ -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
|
||||
{
|
||||
|
|
|
@ -107,6 +107,16 @@ class Message implements \JsonSerializable
|
|||
return $this->Uid;
|
||||
}
|
||||
|
||||
public function HeaderTimeStampInUTC() : int
|
||||
{
|
||||
return $this->HeaderTimeStampInUTC;
|
||||
}
|
||||
|
||||
public function Attachments() : ?AttachmentCollection
|
||||
{
|
||||
return $this->Attachments;
|
||||
}
|
||||
|
||||
public function Plain() : string
|
||||
{
|
||||
return $this->sPlain;
|
||||
|
|
Loading…
Reference in a new issue