Build Mail app extensions

RSS for tag

Discuss the WWDC21 session Build Mail app extensions.

Posts under wwdc21-10168 tag

22 Posts

Post

Replies

Boosts

Views

Activity

Body data missing in decodedMessage call
I have a multipart message and in the MEMessageSecurityHandler.decodedMessage(forMessageData:) function call, I can access all of the headers of the email, but when I get to the body section, the actual content of the email is missing. I've dumped the data out to a file and can see that there is an X-Apple-Content-Length header been added, but the content of the multipart email --=-=W2HxPVXDSaWZZw=-= X-Apple-Content-Length: 11 Content-Type: application/pgp-encrypted --=-=W2HxPVXDSaWZZw=-= Content-Transfer-Encoding: 7Bit Content-Disposition: inline; filename=openpgp-encrypted-message.asc Content-Type: application/octet-stream; name="openpgp-encrypted-message.asc" X-Apple-Content-Length: 9608 --=-=W2HxPVXDSaWZZw=-=-- How can I access the content of these parts to decrypt the message?
2
0
1.2k
Aug ’21
How can I download the attachment in decodedMessage
In decodedMessage, I got the raw message Data. How can I get the attachment with this information? --Apple-Mail=_7074F225-9F70-4410-B0AC-15891A766688 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Content --Apple-Mail=_7074F225-9F70-4410-B0AC-15891A766688 Content-Transfer-Encoding: base64 Content-Disposition: ATTACHMENT; filename*=utf-8''%E5%8D%97%E4%BA%AC%E5%8D%87%E5%AD%A6%E5%AD%A32021.pptx Content-Type: application/vnd.openxmlformats-officedocument.presentationml.presentation; name="=?utf-8?B?5Y2X5Lqs5Y2H5a2m5a2jMjAyMS5wcHR4?="; x-unix-mode=0700 X-Apple-Content-Length: 2299846 --Apple-Mail=_7074F225-9F70-4410-B0AC-15891A766688--
0
0
1.1k
Jul ’21
Body data missing in decodedMessage call
I have a multipart message and in the MEMessageSecurityHandler.decodedMessage(forMessageData:) function call, I can access all of the headers of the email, but when I get to the body section, the actual content of the email is missing. I've dumped the data out to a file and can see that there is an X-Apple-Content-Length header been added, but the content of the multipart email --=-=W2HxPVXDSaWZZw=-= X-Apple-Content-Length: 11 Content-Type: application/pgp-encrypted --=-=W2HxPVXDSaWZZw=-= Content-Transfer-Encoding: 7Bit Content-Disposition: inline; filename=openpgp-encrypted-message.asc Content-Type: application/octet-stream; name="openpgp-encrypted-message.asc" X-Apple-Content-Length: 9608 --=-=W2HxPVXDSaWZZw=-=-- How can I access the content of these parts to decrypt the message?
Replies
2
Boosts
0
Views
1.2k
Activity
Aug ’21
How can I download the attachment in decodedMessage
In decodedMessage, I got the raw message Data. How can I get the attachment with this information? --Apple-Mail=_7074F225-9F70-4410-B0AC-15891A766688 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Content --Apple-Mail=_7074F225-9F70-4410-B0AC-15891A766688 Content-Transfer-Encoding: base64 Content-Disposition: ATTACHMENT; filename*=utf-8''%E5%8D%97%E4%BA%AC%E5%8D%87%E5%AD%A6%E5%AD%A32021.pptx Content-Type: application/vnd.openxmlformats-officedocument.presentationml.presentation; name="=?utf-8?B?5Y2X5Lqs5Y2H5a2m5a2jMjAyMS5wcHR4?="; x-unix-mode=0700 X-Apple-Content-Length: 2299846 --Apple-Mail=_7074F225-9F70-4410-B0AC-15891A766688--
Replies
0
Boosts
0
Views
1.1k
Activity
Jul ’21