rem: RDF.GetResource(selectedItem.id).QueryInterface(nsIMsgFolder); 
add: RDF.GetResource(folderURI).QueryInterface(nsIMsgFolder); 
context: function updateSearchFolderPicker() {    var selectedItem = gFolderPicker.selectedItem;    if (selectedItem.localName != "menuitem") return;    SetFolderPicker(selectedItem.id, gFolderPicker.id);    // use the URI to get the real folder    gCurrentFolder =        RDF.GetResource(selectedItem.id).QueryInterface(nsIMsgFolder);    setSearchScope(GetScopeForFolder(gCurrentFolder));}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/4fc8beb00d5c36c24833986fffb99b8b0c269b09/SearchDialog.js/clean/mailnews/base/search/resources/content/SearchDialog.js