rem: var msgfolder = resource.QueryInterface(Components.interfaces.nsIMsgFolder); 
add: msgfolder = resource.QueryInterface(Components.interfaces.nsIMsgFolder); 
context: function GetMsgFolderFromUri(uri, checkFolderAttributes){    //dump("GetMsgFolderFromUri of " + uri + "\n");    var msgfolder = null;    try {        var resource = GetResourceFromUri(uri);        var msgfolder = resource.QueryInterface(Components.interfaces.nsIMsgFolder);        if (checkFolderAttributes) {            if (!(msgfolder && (msgfolder.parent || msgfolder.isServer))) {                msgfolder = null;            }        }    }    catch (ex) {        //dump("failed to get the folder resource\n");    }    return msgfolder;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d00324cb72a7cf71b16a33ee25e7e94e041f5283/widgetglue.js/clean/mailnews/base/resources/content/widgetglue.js