MozillaZine

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

Talk about add-ons and extension development.
nickhere
 
Posts: 40
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: 3384
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

nickhere
 
Posts: 40
Joined: September 29th, 2009, 1:57 pm

Post Posted December 20th, 2018, 1:23 pm

doesn't work a reparse always cause a exception.

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

Post Posted December 21st, 2018, 11:21 am

The Send Later extension uses the getDatabaseWithReparse method. Try looking how the extension works around the 0x80550005 error.

Send Later
http://addons.thunderbird.net/thunderbird/addon/195275

nsIMsgLocalMailFolder
http://dxr.mozilla.org/comm-esr60/sourc ... Folder.idl

nickhere
 
Posts: 40
Joined: September 29th, 2009, 1:57 pm

Post Posted December 22nd, 2018, 11:00 am

what is happening is i am blowing out the processes (executing to many commands at a time)
for example i have 2000 subfolder under account local
it get to the one folder and crashes then all folder after that crashes
I need to slow the loop down
and make sure what ever need to be done is completed as i move thru each folder.

The folder is fine when i go in by hand,
after a blow out i have to close tbird and come back in
more like a folder is busy

Return to Extension Development


Who is online

Users browsing this forum: No registered users and 2 guests