rem: var curMessage = messages[0]; var nextMessage = null; 
add: curMessage = messages[0]; nextMessage = null; 
context: function GetNextMessageAfterDelete(messages){	var count = messages.length;	var curMessage = messages[0];	var nextMessage = null;	var tree = GetThreadTree();	//search forward	while(curMessage)	{		nextMessage = msgNavigationService.FindNextMessage(navigateAny, tree, curMessage, RDF, document, false, messageView.showThreads);		if(nextMessage)		{			if(nextMessage.getAttribute("selected") != "true")			{				break;			}		}		curMessage = nextMessage;	}	//if no nextmessage then search backwards	if(!nextMessage)	{		var curMessage = messages[0];		var nextMessage = null;		//search forward		while(curMessage)		{			nextMessage = msgNavigationService.FindPreviousMessage(navigateAny, tree, curMessage, RDF, document, false, messageView.showThreads);			if(nextMessage)			{				if(nextMessage.getAttribute("selected") != "true")				{					break;				}			}			curMessage = nextMessage;		}	}	return nextMessage;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/1179ca4df8b1dddc31272e5d75dec19b1a974f3a/commandglue.js/clean/mailnews/base/resources/content/commandglue.js