Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/Model
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2021-06-10 09:25:23 +0300
committerGitHub <noreply@github.com>2021-06-10 09:25:23 +0300
commitb61983e6e1d34bd740d50f06a98946e78f45ccaa (patch)
tree8d12b1c8a78cce60951edd66fac652bab3fa978e /lib/Model
parent7b33e54ea6e8b962da07aaee8f32b33fb1c0f375 (diff)
parent414cf414a24aae4134ef02b4807e8b137b9784a7 (diff)
Merge pull request #5080 from nextcloud/fix/4463/adds-text-calendar-attachment-support
Adds support for text/calendar attachment
Diffstat (limited to 'lib/Model')
-rw-r--r--lib/Model/IMAPMessage.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/Model/IMAPMessage.php b/lib/Model/IMAPMessage.php
index c163ebd0c..23f872738 100644
--- a/lib/Model/IMAPMessage.php
+++ b/lib/Model/IMAPMessage.php
@@ -436,9 +436,16 @@ class IMAPMessage implements IMessage, JsonSerializable {
return;
}
- // TEXT
if ($p->getType() === 'text/calendar') {
- // TODO: skip inline ics for now
+ $this->attachments[] = [
+ 'id' => $p->getMimeId(),
+ 'messageId' => $this->messageId,
+ 'fileName' => $p->getName() ?? 'calendar.ics',
+ 'mime' => $p->getType(),
+ 'size' => $p->getBytes(),
+ 'cid' => $p->getContentId(),
+ 'disposition' => $p->getDisposition()
+ ];
return;
}