rem: var hasNew = folder.hasNewMessages(); 
add: var hasNew = folder.hasNewMessages; 
context: function ScrollToFirstNewMessage(){	var tree = GetThreadTree();	var treeFolder = GetThreadTreeFolder();	var folderURI = treeFolder.getAttribute('ref');	var folderResource = RDF.GetResource(folderURI);	var folder = folderResource.QueryInterface(Components.interfaces.nsIMsgFolder);	var hasNew = folder.hasNewMessages();	if(hasNew)	{		var newMessage = folder.firstNewMessage;		if(messageView.showThreads)		{			//if we're in thread mode, then we need to actually make sure the message is showing.			var topLevelMessage = GetTopLevelMessageForMessage(newMessage, folder);			var topLevelResource = topLevelMessage.QueryInterface(Components.interfaces.nsIRDFResource);			var topLevelURI = topLevelResource.Value;			var topElement = document.getElementById(topLevelURI);			if(topElement)			{				msgNavigationService.OpenTreeitemAndDescendants(topElement);			}		}				var messageResource = newMessage.QueryInterface(Components.interfaces.nsIRDFResource);		var messageURI = messageResource.Value;		var messageElement = document.getElementById(messageURI);		if(messageElement)		{			tree.ensureElementIsVisible(messageElement); 		}	}}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/1567fac51e73befb9bde885c929dbbc252e0cb0b/msgViewNavigation.js/buggy/mailnews/base/resources/content/msgViewNavigation.js