diff options
author | Cyrille Bollu <cyr.debian@bollu.be> | 2021-05-28 15:27:54 +0300 |
---|---|---|
committer | Cyrille Bollu <cyr.debian@bollu.be> | 2021-05-28 15:27:54 +0300 |
commit | 63a6817023a8604ad3fa0950d045e3aa25b40625 (patch) | |
tree | bca2f5c04bb7662687bb9cb1dc7e78e99e873061 /lib/Model | |
parent | 807b1ebe130f02bef23a5bc18040bbfd423da2db (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.php | 11 |
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; } |