Attachment urls are not returned from 'browser.messages.getFull'
Categories
(Thunderbird :: Add-Ons: Extensions API, defect)
Tracking
(Not tracked)
People
(Reporter: standard8, Unassigned)
References
Details
I'm trying to use the browser.messages.getFull
API to get the urls of attachments so that I can display them.
When I use this API, I'm only getting the body for the main email, not the urls for the attachments.
For example, the email I'm looking at at the moment has this rough structure:
{
contentType: "message/rfc822",
parts: [{
contentType: "multipart/mixed",
parts: [{
contentType: "multipart/alternative",
parts: [{
contentType: "text/plain",
body: "Yay, a body!"
}, {
contentType: "text/html",
body: "<html stuff..."
}]
}, {
contentType: "image.jpeg",
size: 3653748,
name: "2019.jpg"
}]
}]
}
As this doesn't have the attachment urls, there doesn't appear to be any way to get attachment data from the APIs.
Reporter | ||
Comment 1•4 years ago
|
||
Updated for the fact I just realised that we were previously getting attachment urls using MsgHdrToMimeMessage
from resource:///modules/gloda/mimemsg.js
, not bodies.
I don't mind too much what we get, as long as it is something that can be used.
Reporter | ||
Comment 2•4 years ago
|
||
Also, if we do let this return a URL, then we need to allow moz-extension scopes to access mailbox-message
and other related urls.
Updated•3 years ago
|
Description
•