rem: if (!folder) { 
add:   if (!folder || !folder.server.canSearchMessages) { 
context: function selectFolder(folder) {    var folderURI;    if (!folder) {        // walk folders to find first item        var firstItem = getFirstItemByTag(gFolderPicker, "menu");        folderURI = firstItem.id;    } else {        folderURI = folder.URI;    }    updateSearchFolderPicker(folderURI);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/ac19bc66dad6d37cd45b9363029382470dd8b423/SearchDialog.js/clean/mailnews/base/search/resources/content/SearchDialog.js