var treeSelection = treeView.selection; treeSelection.clearSelection();   for (i=0;i<aIndices.length;i++) treeSelection.rangedSelect(aIndices[i], aIndices[i], true /* augment */);  var actionParams = determineActionsForJunkMsgs(treeView, aIndices); if (actionParams.markRead) MarkSelectedMessagesRead(true); 
function performActionsOnJunkMsgs(aIndices){  if (!aIndices.length)    return;  var treeView = gDBView.QueryInterface(Components.interfaces.nsITreeView);  var treeSelection = treeView.selection;  treeSelection.clearSelection();  // select the messages  for (i=0;i<aIndices.length;i++)    treeSelection.rangedSelect(aIndices[i], aIndices[i], true /* augment */);  var actionParams = determineActionsForJunkMsgs(treeView, aIndices);  if (actionParams.markRead)    MarkSelectedMessagesRead(true);  if (actionParams.junkTargetFolder)  {    SetNextMessageAfterDelete();    gDBView.doCommandWithFolder(nsMsgViewCommandType.moveMessages, actionParams.junkTargetFolder);  }  treeSelection.clearSelection();}
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/8744934c363e15064d13b21588e5260446369066/mailCommands.js/buggy/mail/base/content/mailCommands.js