Bug: [imap-js] Cannot display email content in sub-folders when I select an email in the list
Status: RESOLVED
Priority: --
Resolution: WONTFIX
Created: 2023-03-01 09:57:44+00:00
Resolved: 2025-02-13 07:42:38+00:00

STR:
1. Select an email to view it

Expected Result:
Show the mail header and mail body normally in the pane.

Actual Result:
The pane is blank.

I got this error in the console.
```
NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIMsgFolder.GetMessageHeader] ImapMessageService.jsm:238
    messageURIToMsgHdr resource:///modules/ImapMessageService.jsm:238
    ImapChannel resource:///modules/ImapChannel.jsm:49
    newChannel resource:///modules/ImapProtocolHandler.jsm:18
    fetchMessage resource:///modules/ImapService.jsm:185
    DisplayMessage resource:///modules/ImapMessageService.jsm:87
    displayMessage chrome://messenger/content/aboutMessage.js:183
    ReloadMessage chrome://messenger/content/aboutMessage.js:49
    _reloadTimeout chrome://messenger/content/aboutMessage.js:255
    (Async: setTimeout handler)
    observe chrome://messenger/content/aboutMessage.js:253
    ToggleInlineAttachment chrome://messenger/content/mailWindowOverlay.js:1645
    oncommand chrome://messenger/content/messenger.xhtml:1
```
and
```
mailnews.imap: 
Exception { name: "NS_ERROR_ILLEGAL_VALUE", message: "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIMsgMailNewsUrl.folder]", result: 2147942487, filename: "resource:///modules/ImapChannel.jsm", lineNumber: 181, columnNumber: 0, data: null, stack: "readFromLocalCache@resource:///modules/ImapChannel.jsm:181:7\nasyncOpen@resource:///modules/ImapChannel.jsm:139:16\nfetchMessage@resource:///modules/ImapService.jsm:185:10\nDisplayMessage@resource:///modules/ImapMessageService.jsm:87:30\ndisplayMessage@chrome://messenger/content/aboutMessage.js:183:18\nReloadMessage@chrome://messenger/content/aboutMessage.js:49:17\nobserve/this._reloadTimeout<@chrome://messenger/content/aboutMessage.js:255:9\nsetTimeout handler*observe@chrome://messenger/content/aboutMessage.js:253:29\nToggleInlineAttachment@chrome://messenger/content/mailWindowOverlay.js:1645:18\noncommand@chrome://messenger/content/messenger.xhtml:1:23\n", location: XPCWrappedNative_NoHelper }
​
columnNumber: 0
​
data: null
​
filename: "resource:///modules/ImapChannel.jsm"
​
lineNumber: 181
​
location: XPCWrappedNative_NoHelper { QueryInterface: QueryInterface(), filename: Getter, name: Getter, … }
​
message: "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIMsgMailNewsUrl.folder]"
​
name: "NS_ERROR_ILLEGAL_VALUE"
​
result: 2147942487
​
stack: "readFromLocalCache@resource:///modules/ImapChannel.jsm:181:7\nasyncOpen@resource:///modules/ImapChannel.jsm:139:16\nfetchMessage@resource:///modules/ImapService.jsm:185:10\nDisplayMessage@resource:///modules/ImapMessageService.jsm:87:30\ndisplayMessage@chrome://messenger/content/aboutMessage.js:183:18\nReloadMessage@chrome://messenger/content/aboutMessage.js:49:17\nobserve/this._reloadTimeout<@chrome://messenger/content/aboutMessage.js:255:9\nsetTimeout handler*observe@chrome://messenger/content/aboutMessage.js:253:29\nToggleInlineAttachment@chrome://messenger/content/mailWindowOverlay.js:1645:18\noncommand@chrome://messenger/content/messenger.xhtml:1:23\n"
​
<prototype>: ExceptionPrototype { toString: toString(), name: Getter, message: Getter, … }
```

I updated daily to 112.0a1 (2023-02-28) (64-bit).

I cannot read the main even in new tab, but the thread summary is shown if I click a collapsed thread in the list.