MozillaZine

any way to fix this error failure code: 0x80550005 [nsIMsgFo

Talk about add-ons and extension development.
nickhere
 
Posts: 15
Joined: September 29th, 2009, 1:57 pm

Post Posted July 31st, 2018, 6:31 pm

Exception: [Exception... "Component returned failure code: 0x80550005 [nsIMsgFolder.messages]" nsresult: "0x80550005 (<unknown>)" location: "JS frame :: Scratchpad/1 :: <TOP_LEVEL> :: line 29" data: no]


Code: Select all
for (var i = 0; i < folders.length; i++) {
    try{
      console.log(folders[i].prettiestName+" "+i);
  var enumerator = folders[i].messages;                    (the error line get to 485 folder then bombs)
  while (enumerator.hasMoreElements()) {
    var hdr = enumerator.getNext().QueryInterface(Components.interfaces.nsIMsgDBHdr);
    var hp = MailServices.headerParser;
    var date = new Date(hdr.dateInSeconds * 1000).toLocaleString();
    //console.log(accountName.prettiestName);
     }
  }
  finally{}
}

morat
 
Posts: 2863
Joined: February 3rd, 2009, 6:29 pm

Post Posted August 1st, 2018, 7:17 am

0x80550005: NS_MSG_ERROR_FOLDER_SUMMARY_OUT_OF_DATE

I would try to force a reparse. (see feeder function in newsblog.js)

http://mozilla.6506.n7.nabble.com/How-t ... 85433.html
http://dxr.mozilla.org/comm-esr31/sourc ... ewsblog.js

Return to Extension Development


Who is online

Users browsing this forum: No registered users and 2 guests