Just to make sure I got this correctly. You cannot get a nsIMsgDBHdr
from within a WebExtension, this goes against the principle of
You can however user nsIMsgDBHdr's internally in WebExtension
Experiments code. When one of your API method returns or takes a message
or message id, you need to make sure to wrap it in a Message object.
Re: How to translate a (Webextension) MessageHeader.id to nsIMsgDBHdr?
Okay, I'm sorry, my understanding of how things work was wrong. It's
been some time since I looked at experiments. From the context object
passed to getAPI, you should be able to access
context.extension.windowManager, correct? We need to add similar
"managers" that you can access that way. I'll get on to that this week,
as it's quite important.