To add to this, I have tried calling the getMsgDatabase function on the nsIMsgFolder (passing in null for the msgWindow) and received the following:
Error: uncaught exception: [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIMsgFolder.getMsgDatabase]" nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)" location "JS frame :: chrome://messenger/content/cleanTest.js :: tryRDF :: line 230" data:no] Obviously giving you the name of my source file and the line number of the error doesn't help but needless to say its the line that I call getMsgDatabase on. I would greatly greatly appreciate hints on this problem. Dan > > I can now get an nsIMsgFolder from RDF and I can get all the Account > info that I could possibly dream of. What I'm running into problems > with is getting actual messages from within the folder. I can get > counts of new messages and total messages recursively once I've called > the GetSubFolders method on the nsIMsgFolder but I can't seem to get to > any messages. I think what I'm looking to get my hands on is an > nsIMsgDatabase but I haven't been able to find a path to it. If anyone > is interested I can post sample code on a website rather than posting to > this newsgroup/list with what I have so far. > > Thanks, > Dan >
