rem:  var firstItem = getFirstItemByTag(gFolderPicker, "menu"); folderURI = firstItem.id; 
add:  folderURI = gFolderPicker.firstChild.tree.builderView.getResourceAtIndex(0).Value; 
context: function selectFolder(folder) {    var folderURI;    // if we can't search messages on this folder, just select the first one    if (!folder || !folder.server.canSearchMessages || (folder.flags & MSG_FOLDER_FLAG_VIRTUAL)) {        // walk folders to find first item        var firstItem = getFirstItemByTag(gFolderPicker, "menu");        folderURI = firstItem.id;    } else {        folderURI = folder.URI;    }    updateSearchFolderPicker(folderURI);}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/5ca2ae2c12b4bdd8db7bd7c703c3d24fddd1ccb3/SearchDialog.js/buggy/mailnews/base/search/resources/content/SearchDialog.js