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: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/354eaa2141548fa4e91c43ed19edf768633eacab/commandglue.js/clean/mailnews/base/resources/content/commandglue.js