rem: var appCore = FindMsgAppCore(); 
add: var appCore = FindMessenger(); 
context: function GetNewMessages(){	var folderTree = frames[0].frames[0].document.getElementById('folderTree'); 	var selectedFolderList = folderTree.getElementsByAttribute("selected", "true");	if(selectedFolderList.length > 0)	{		var selectedFolder = selectedFolderList[0];				var appCore = FindMsgAppCore();		if (appCore != null) {			appCore.SetWindow(window);			appCore.GetNewMessages(folderTree.database, selectedFolder);		}	}	else {		dump("Nothing was selected\n");	}}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/3dc683beabc98e7a22138962198d3cd838fdcf63/commandglue.js/buggy/mailnews/base/resources/content/commandglue.js