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:
authorCyrille Bollu <cyr.debian@bollu.be>2021-05-28 15:27:54 +0300
committerCyrille Bollu <cyr.debian@bollu.be>2021-05-28 15:27:54 +0300
commit63a6817023a8604ad3fa0950d045e3aa25b40625 (patch)
treebca2f5c04bb7662687bb9cb1dc7e78e99e873061 /lib/Model
parent807b1ebe130f02bef23a5bc18040bbfd423da2db (diff)
Adds support for text/calendar attachments
Signed-off-by: Cyrille Bollu <cyr.debian@bollu.be>
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 e1393d8ac..53890babd 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(),
+ 'mime' => $p->getType(),
+ 'size' => $p->getBytes(),
+ 'cid' => $p->getContentId(),
+ 'disposition' => $p->getDisposition()
+ ];
return;
}