rem: if(msgFolder && msgFolder.hasNewMessages()) msgFolder.clearNewMessages(); 
add: if(msgFolder) { var nsIMsgFolder = Components.interfaces.nsIMsgFolder; msgFolder.biffState = nsIMsgFolder.nsMsgBiffState_NoMail;  if (msgFolder.hasNewMessages) msgFolder.clearNewMessages(); } 
context: function GetNewMessages(selectedFolders, compositeDataSource){	var numFolders = selectedFolders.length;	if(numFolders > 0)	{		var msgFolder = selectedFolders[0];		//Whenever we do get new messages, clear the old new messages.		if(msgFolder && msgFolder.hasNewMessages())			msgFolder.clearNewMessages();				if(compositeDataSource)		{			var folderResource = msgFolder.QueryInterface(Components.interfaces.nsIRDFResource);		    var folderArray = Components.classes["component://netscape/supports-array"].createInstance(Components.interfaces.nsISupportsArray);			folderArray.AppendElement(folderResource);			DoRDFCommand(compositeDataSource, "http://home.netscape.com/NC-rdf#GetNewMessages", folderArray, null);		}	}	else {		dump("Nothing was selected\n");	}}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/dfd928ee8d73a853a2eee08c5f546036114b976e/mailCommands.js/buggy/mailnews/base/resources/content/mailCommands.js