rem: /* 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) {  var topLevelMessage = GetTopLevelMessageForMessage(newMessage, folder); var topLevelResource = topLevelMessage.QueryInterface(Components.interfaces.nsIRDFResource); var topLevelURI = topLevelResource.Value; var topElement = document.getElementById(topLevelURI); if(topElement) {  }  }  var messageResource = newMessage.QueryInterface(Components.interfaces.nsIRDFResource); var messageURI = messageResource.Value; var messageElement = document.getElementById(messageURI);  if(messageElement) { tree.ensureElementIsVisible(messageElement); } } */ 
context: function ScrollToFirstNewMessage(){  dump("XXX ScrollToFirstNewMessage needs to be rewritten.\n");/*	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/140940d7ead52b6b9743db1e84a8f8892299eac5/msgViewNavigation.js/buggy/mailnews/base/resources/content/msgViewNavigation.js