Use this API to extract the IMAP UID from a message.
Add the ImapTools API to your add-on. Your manifest.json
needs an entry like this:
"experiment_apis": {
"ImapTools": {
"schema": "api/ImapTools/schema.json",
"parent": {
"scopes": ["addon_parent"],
"paths": [["ImapTools"]],
"script": "api/ImapTools/implementation.js"
}
}
},
The API provides a simple function to get the IMAP UID:
Returns a Promise for the IMAP UID of the message with the WebExtension ID specified in messageID
.