diff --git a/plugins/kolab/KolabAddressBook.php b/plugins/kolab/KolabAddressBook.php index 7ade62c11..475325ac9 100644 --- a/plugins/kolab/KolabAddressBook.php +++ b/plugins/kolab/KolabAddressBook.php @@ -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; } } diff --git a/plugins/kolab/index.php b/plugins/kolab/index.php index be93fb382..46581ee54 100644 --- a/plugins/kolab/index.php +++ b/plugins/kolab/index.php @@ -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 { diff --git a/snappymail/v/0.0.0/app/libraries/MailSo/Mail/Message.php b/snappymail/v/0.0.0/app/libraries/MailSo/Mail/Message.php index 2efde4ad3..70e7c740b 100644 --- a/snappymail/v/0.0.0/app/libraries/MailSo/Mail/Message.php +++ b/snappymail/v/0.0.0/app/libraries/MailSo/Mail/Message.php @@ -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;