rem:        if(gDBView.removeRowOnMoveOrDelete) 
add: if (treeSelection.isSelected(treeSelection.currentIndex)) gNextMessageViewIndexAfterDelete = gDBView.msgToSelectAfterDelete; else if(gDBView.removeRowOnMoveOrDelete) 
context: function SetNextMessageAfterDelete(){  var treeSelection = GetThreadTree().treeBoxObject.selection;  // Only set gThreadPaneDeleteOrMoveOccurred to true if the message was  // truly moved to the trash or deleted, as opposed to an IMAP delete  // (where it is only "marked as deleted".  This will prevent bug 142065.  //  // If it's an IMAP delete, then just set gNextMessageViewIndexAfterDelete  // to treeSelection.currentIndex (where the outline is at) because nothing  // was moved or deleted from the folder.  if(gDBView.removeRowOnMoveOrDelete)  {    gThreadPaneDeleteOrMoveOccurred = true;    gNextMessageViewIndexAfterDelete = treeSelection.currentIndex - NumberOfSelectedMessagesAboveCurrentIndex(treeSelection.currentIndex);  }  else    gNextMessageViewIndexAfterDelete = treeSelection.currentIndex;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/195dc7ee6cc10ae53bb775a5cca6f9b046870c90/msgMail3PaneWindow.js/clean/mail/base/content/msgMail3PaneWindow.js