rem: addAttachmentToPopup(popup, currentAttachments[index]); 
add: ++attachmentIndex; addAttachmentToPopup(popup, currentAttachments[index], attachmentIndex); 
context: function FillAttachmentListPopup(popup){  // the FE sometimes call this routine TWICE...I haven't been able to figure out why yet...  // protect against it...  if (!gBuildAttachmentPopupForCurrentMsg) return;   // otherwise we need to build the attachment view...  // First clear out the old view...  ClearAttachmentMenu(popup);  for (index in currentAttachments)  {    addAttachmentToPopup(popup, currentAttachments[index]);  }  gBuildAttachmentPopupForCurrentMsg = false;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/f1e323eb6307fc8e09c6bae7daa4d528750e2bd5/msgHdrViewOverlay.js/buggy/mailnews/base/resources/content/msgHdrViewOverlay.js