rem: var tree = GetFolderTree(); var folderList = tree.selectedItems;  if(folderList.length == 1) { var folderNode = folderList[0]; return(folderNode.getAttribute("IsServer") != "true"); } else return false; 
add: var folderOutliner = GetFolderOutliner(); var selection = folderOutliner.outlinerBoxObject.selection; if (selection.count == 1) { var startIndex = {}; var endIndex = {}; selection.getRangeAt(0, startIndex, endIndex); var folderResource = GetFolderResource(folderOutliner, startIndex.value); return GetFolderAttribute(folderOutliner, folderResource, "IsServer") != "true"; } else return false; 
context: function IsFolderSelected(){  	var tree = GetFolderTree();	var folderList = tree.selectedItems;	if(folderList.length == 1)	{		var folderNode = folderList[0];		return(folderNode.getAttribute("IsServer") != "true");	}	else		return false;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/938770831965cde1ef5c4ce945b768186518efae/mail3PaneWindowCommands.js/buggy/mailnews/base/resources/content/mail3PaneWindowCommands.js