mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +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;
|
$xCard = null;
|
||||||
try {
|
try {
|
||||||
foreach ($oMessage->Attachments() ?: [] as $oAttachment) {
|
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) {
|
$result = $this->MailClient()->MessageMimeStream(function ($rResource) use (&$xCard) {
|
||||||
if (\is_resource($rResource)) {
|
if (\is_resource($rResource)) {
|
||||||
$xCard = \Sabre\VObject\Reader::readXML($rResource);
|
$xCard = \Sabre\VObject\Reader::readXML($rResource);
|
||||||
}
|
}
|
||||||
}, $this->sFolderName, $oMessage->Uid(), $oAttachment->MimeIndex());
|
}, $this->sFolderName, $oMessage->Uid(), $oAttachment->PartID());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ class KolabPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
RELEASE = '2023-01-03',
|
RELEASE = '2023-01-03',
|
||||||
CATEGORY = 'Contacts',
|
CATEGORY = 'Contacts',
|
||||||
DESCRIPTION = 'Use an Address Book of Kolab.',
|
DESCRIPTION = 'Use an Address Book of Kolab.',
|
||||||
REQUIRED = '2.24.4';
|
REQUIRED = '2.24.5';
|
||||||
|
|
||||||
public function Init() : void
|
public function Init() : void
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -107,6 +107,16 @@ class Message implements \JsonSerializable
|
||||||
return $this->Uid;
|
return $this->Uid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function HeaderTimeStampInUTC() : int
|
||||||
|
{
|
||||||
|
return $this->HeaderTimeStampInUTC;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function Attachments() : ?AttachmentCollection
|
||||||
|
{
|
||||||
|
return $this->Attachments;
|
||||||
|
}
|
||||||
|
|
||||||
public function Plain() : string
|
public function Plain() : string
|
||||||
{
|
{
|
||||||
return $this->sPlain;
|
return $this->sPlain;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue