rem: { 
add: { var strBundleService = Components.classes["@mozilla.org/intl/stringbundle;1"]. getService(Components.interfaces.nsIStringBundleService); var bundle = strBundleService.createBundle("chrome:  var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.interfaces.nsIPromptService); if (!promptService.confirm(window, bundle.GetStringFromName("confirmViewDeleteTitle"), bundle.GetStringFromName("confirmViewDeleteMessage"))) return;  
context: function onDeleteMailView(){  // get the selected index  var selectedIndex = gListBox.selectedIndex;  if (selectedIndex >= 0)  {    var mailView = gMailListView.getMailViewAt(selectedIndex);    if (mailView)    {      gMailListView.removeMailView(mailView);      // now remove it from the view...      gListBox.removeChild(gListBox.selectedItem);      // select the next item in the list..      if (selectedIndex < gListBox.getRowCount())        gListBox.selectedIndex = selectedIndex;      else        gListBox.selectedIndex = gListBox.getRowCount() - 1;      gMailListView.save();    }  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/8fc8225e871e6c7a4256454d3fa29fe30fdd66cb/mailViewList.js/buggy/mailnews/extensions/mailviews/resources/content/mailViewList.js