rem: nextMessage = GetNextMessage(curMessage, GoMessage, false); 
add: nextMessage = GetNextMessage(tree, curMessage, GoMessage, false); 
context: function GetNextMessageAfterDelete(messages){	var count = messages.length;	var curMessage = messages[0];	var nextMessage = null;	//search forward	while(curMessage)	{		nextMessage = GetNextMessage(curMessage, GoMessage, false);		if(nextMessage)		{			if(!MessageInSelection(nextMessage, messages))			{				break;			}		}		curMessage = nextMessage;	}	//if no nextmessage then search backwards	if(!nextMessage)	{		var curMessage = messages[0];		var nextMessage = null;		//search forward		while(curMessage)		{			nextMessage = GetPreviousMessage(curMessage, GoMessage, false);			if(nextMessage)			{				if(!MessageInSelection(nextMessage, messages))				{					break;				}			}			curMessage = nextMessage;		}	}	return nextMessage;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/3964bb3ac5a8a769e5c66e5596fdb11ef1eb42c6/commandglue.js/buggy/mailnews/base/resources/content/commandglue.js