Closed Bug 1862482 Opened 2 years ago Closed 2 years ago

ADD ON API EXTENSION get message text content

Categories

(Thunderbird :: Add-Ons: Extensions API, defect)

Thunderbird 115
defect

Tracking

(Not tracked)

RESOLVED INVALID

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

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&regexp=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

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Component: Untriaged → Add-Ons: Extensions API
Resolution: --- → INVALID

Thank you. you help me a lot

You need to log in before you can comment on or make changes to this bug.