rem: var selectedFolders = GetSelectedMsgFolders(); var numFolders = selectedFolders.length; if(numFolders !=1) return false;  var folder = selectedFolders[0]; if (!folder) return false;  var server = folder.server; var isServer = folder.isServer; var serverType = server.type;  if(isServer && (serverType == "nntp")) return false; else if(serverType == "none") return false; else return true; 
add: var selectedFolders = GetSelectedMsgFolders(); var numFolders = selectedFolders.length; if(numFolders !=1) return false;  var folder = selectedFolders[0]; if (!folder) return false;  var server = folder.server; var isServer = folder.isServer; var serverType = server.type;  if(isServer && (serverType == "nntp")) return false; else if(serverType == "none") return false; else return true; 
context: function IsGetNewMessagesEnabled(){	var selectedFolders = GetSelectedMsgFolders();	var numFolders = selectedFolders.length;	if(numFolders !=1)		return false;			var folder = selectedFolders[0];	if (!folder)		return false;		var server = folder.server;	var isServer = folder.isServer;	var serverType = server.type;		if(isServer && (serverType == "nntp"))		return false;	else if(serverType == "none")		return false;	else		return true;	}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/98f8dba7b96019d33eaa1162fb11dc98138a445f/mailWindowOverlay.js/buggy/mailnews/base/resources/content/mailWindowOverlay.js