rem:  if (msgFolder.hasNewMessages) msgFolder.clearNewMessages(); 
add: msgFolder.clearNewMessages(); 
context: function GetNewMessages(selectedFolders, server, 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) 		{			var nsIMsgFolder = Components.interfaces.nsIMsgFolder;			msgFolder.biffState = nsIMsgFolder.nsMsgBiffState_NoMail;			if (msgFolder.hasNewMessages)				msgFolder.clearNewMessages();		}				if(compositeDataSource)		{			var folderResource = msgFolder.QueryInterface(Components.interfaces.nsIRDFResource);		    var folderArray = Components.classes["@mozilla.org/supports-array;1"].createInstance(Components.interfaces.nsISupportsArray);			folderArray.AppendElement(folderResource);		  var serverArray = Components.classes["@mozilla.org/supports-array;1"].createInstance(Components.interfaces.nsISupportsArray);      serverArray.AppendElement(server);			DoRDFCommand(compositeDataSource, "http://home.netscape.com/NC-rdf#GetNewMessages", folderArray, serverArray);		}	}	else {		dump("Nothing was selected\n");	}}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/05d270774e52e58d99a71e489fd1fea5e3d64a85/mailCommands.js/clean/mail/base/content/mailCommands.js