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

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

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

Post by nickhere »

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: 6404
Joined: February 3rd, 2009, 6:29 pm

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

Post by morat »

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

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

Post by nickhere »

doesn't work a reparse always cause a exception.
morat
Posts: 6404
Joined: February 3rd, 2009, 6:29 pm

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

Post by morat »

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

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

Post by nickhere »

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
Post Reply