ADD ON API EXTENSION get message text content
Categories
(Thunderbird :: Add-Ons: Extensions API, defect)
Tracking
(Not tracked)
People
(Reporter: grzebieniakpiotr, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36
Steps to reproduce:
hello everyone,
Until 114 version of thunderbird, in my add-on i used messenger.messageServiceFromURI(uri).streamMessage(uri, listener, null, null, false, "")
to read the message content from stream. But now in new version thunderbird 115 it is not working .messageServiceFromURI is not exist in messenger. it is undefined. I can not find information about it in WebExtension API Documentation
Comment 1•2 years ago
|
||
There is some documentation here on the changes in 115, however it doesn't cover this case... unfortunately it is difficult for all the relevant changes to be documented since there are so many.
You can also sometimes find out about changed functions/functionality by searching the Thunderbird source code. For example, this search searches the latest Thunderbird code for messageServiceFromURI
: https://searchfox.org/comm-central/search?q=messageServiceFromURI&path=&case=false®exp=false
From there you should be able to see that the replacement is MailServices.messageServiceFromURI(msgUri)
. You may need to include MailServices
as well, e.g. here.
Also please note that there are mailing lists and a chat room available for developer questions like this: https://developer.thunderbird.net/add-ons/community
Description
•