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: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/d04174bf7b6b57f1c23923c2a9cbcf1223681cb5/msgViewNavigation.js/clean/mailnews/base/resources/content/msgViewNavigation.js