diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-10-10 14:36:35 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-01-08 16:01:06 +0300 |
commit | 150716df3480175ac223f59f9349eba8cedf6524 (patch) | |
tree | 4151035d6b00aba594799fbb4c1a4b5c935c206d /lib/Model | |
parent | b57fa26fc1401cf3afc4289e35c6ed5d0cc863b4 (diff) |
Use KItinerary to extract information from emails and attachments
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Model')
-rw-r--r-- | lib/Model/IMAPMessage.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Model/IMAPMessage.php b/lib/Model/IMAPMessage.php index 74ec3aa04..c37451ba1 100644 --- a/lib/Model/IMAPMessage.php +++ b/lib/Model/IMAPMessage.php @@ -29,7 +29,6 @@ declare(strict_types=1); namespace OCA\Mail\Model; -use Closure; use Exception; use Horde_Imap_Client; use Horde_Imap_Client_Data_Envelope; @@ -48,7 +47,6 @@ use OCA\Mail\Service\Html; use OCP\AppFramework\Db\DoesNotExistException; use OCP\Files\File; use OCP\Files\SimpleFS\ISimpleFile; -use OCP\Util; use function base64_encode; use function mb_convert_encoding; @@ -413,6 +411,7 @@ class IMAPMessage implements IMessage, JsonSerializable { public function jsonSerialize(): array { return [ 'id' => $this->getUid(), + 'messageId' => $this->getMessageId(), 'from' => $this->getFrom()->jsonSerialize(), 'to' => $this->getTo()->jsonSerialize(), 'cc' => $this->getCC()->jsonSerialize(), |