rem: if(useSelection) { var tree = GetThreadTree(); var nextMessage = GetNextMessageAfterDelete(tree.selectedItems); if(nextMessage) gNextMessageAfterDelete = nextMessage.getAttribute('id'); else gNextMessageAfterDelete = null; } 
add: var tree = GetThreadTree();  var nextMessage = GetNextMessageAfterDelete(tree.selectedItems); if(nextMessage) gNextMessageAfterDelete = nextMessage.getAttribute('id'); else gNextMessageAfterDelete = null;   if (!gBatching && (GetNumSelectedMessages() > 3)) { gBatching = true;  dump("XXX begin tree batch\n"); } 
context: function SetNextMessageAfterDelete(messagesToCheck, useSelection){	if(useSelection)	{		var tree = GetThreadTree();		var nextMessage = GetNextMessageAfterDelete(tree.selectedItems);		if(nextMessage)			gNextMessageAfterDelete = nextMessage.getAttribute('id');		else			gNextMessageAfterDelete = null;	}}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6909a8b42a7f27b9eb44bd1da6305c4b20ef105a/msgMail3PaneWindow.js/buggy/mailnews/base/resources/content/msgMail3PaneWindow.js