add:   var msgFolder = GetMsgFolderFromNode(selectedFolder); if(msgFolder && msgFolder.hasNewMessages()) msgFolder.clearNewMessages();  
context: function GetNewMessages(){	var folderTree = GetFolderTree();	var selectedFolderList = folderTree.selectedItems;	if(selectedFolderList.length > 0)	{		var selectedFolder = selectedFolderList[0];		messenger.GetNewMessages(folderTree.database, selectedFolder.resource);	}	else {		dump("Nothing was selected\n");	}}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/767402957b672cdfd66cfb606f217dc4ddcd9726/commandglue.js/buggy/mailnews/base/resources/content/commandglue.js