rem: var newMessage = GetNextMessage(tree, null, GoNewMessage, ResourceGoNewMessage, null, false) 
add: 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; 
context: function ScrollToFirstNewMessage(){	var tree = GetThreadTree();	var newMessage = GetNextMessage(tree, null, GoNewMessage, ResourceGoNewMessage, null, false)	if(newMessage)	{		tree.ensureElementIsVisible(newMessage); 	}}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/4170fc4b9236a536c31f600a2e1c72350686521c/msgViewNavigation.js/buggy/mailnews/base/resources/content/msgViewNavigation.js