rem: if (pickerID == "msgSubscribeFolderPicker") { verifyFunction = msgfolder.canSubscribe; } else if (pickerID == "msgNewFolderPicker") { verifyFunction = msgfolder.canCreateSubfolders; } else if (pickerID == "msgRenameFolderPicker") { verifyFunction = msgfolder.canRename; } else if ((pickerID == "msgFccFolderPicker") || (pickerID == "msgDraftsFolderPicker") || (pickerID == "msgStationeryFolderPicker") || (pickerID == "msgJunkMailFolderPicker")) { verifyFunction = msgfolder.canFileMessages; } else { dump("this should never happen\n"); return; 
add: switch (pickerID) { case "msgSubscribeFolderPicker": verifyFunction = msgfolder.canSubscribe; break; case "msgNewFolderPicker": verifyFunction = msgfolder.canCreateSubfolders; break; case "msgRenameFolderPicker": verifyFunction = msgfolder.canRename; break; default: verifyFunction = msgfolder.canFileMessages; break; 
context: function MsgFolderPickerOnLoad(pickerID){	//dump("in MsgFolderPickerOnLoad()\n");	var uri = null;	try { 		uri = window.arguments[0].preselectedURI;	}	catch (ex) {		uri = null;	}	if (uri) {		//dump("on loading, set titled button to " + uri + "\n");		// verify that the value we are attempting to		// pre-flight the menu with is valid for this		// picker type		var msgfolder = GetMsgFolderFromUri(uri);        	if (!msgfolder) return; 				var verifyFunction = null;		if (pickerID == "msgSubscribeFolderPicker") {			verifyFunction = msgfolder.canSubscribe;		}		else if (pickerID == "msgNewFolderPicker") {			verifyFunction = msgfolder.canCreateSubfolders;		}		else if (pickerID == "msgRenameFolderPicker") {			verifyFunction = msgfolder.canRename;		}		else if ((pickerID == "msgFccFolderPicker") || (pickerID == "msgDraftsFolderPicker") || (pickerID == "msgStationeryFolderPicker") || (pickerID == "msgJunkMailFolderPicker")) {			verifyFunction = msgfolder.canFileMessages;		}		else {			dump("this should never happen\n");			return;		}		if (verifyFunction) {			SetFolderPicker(uri,pickerID);		}	}}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d9aff6507e9455979d01ec5bbbdc7860ef7f38ef/msgFolderPickerOverlay.js/clean/mailnews/base/resources/content/msgFolderPickerOverlay.js