This question is a follow-up to a previous question/answer found at:
In this scenario, the code attempts to retrieve a list of accounts, select the emailAccountName
, get a MessageList object from the specified wantedMailFolderType
, and then access a MessagePart object using the messageId with browser.messages.getFull(messageId), resulting in a consistent failure with the following Exception message:
[Exception...
"Component returned failure code: 0x80004005 (NS_ERROR_FAILURE)
[nsIMsgMessageService.streamMessage]"
nsresult: "0x80004005 (NS_ERROR_FAILURE)"
location: "JS frame :: resource:///modules/gloda/mimemsg.js
:: MsgHdrToMimeMessage
:: line 238" data: no]
mimemsg.js:238:16
This issue occurs on both Linux Mint 19.3 (64-Bit) running Thunderbird 68.4.1 (64-Bit) and Windows 7 (64-Bit) running Thunderbird 68.2.2 (32-Bit).
Below is the code snippet that reproduces the error:
emailAccountName = "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="fc9a958e8f88929d91930d909c939593489192949cd9938f93">[email protected]</a>";
wantedMailFolderType = "trash";
// Code logic here...
The output of the last run highlighted potential areas leading to errors. Should anyone be able to test this code on their machine or have insights on how to proceed, your help would be greatly appreciated.
Thank you. - Richard