rem: while (enumerator.hasMoreElements()) { var headerResult = enumerator.getNext(); headerResult = enumerator.QueryInterface(Components.interfaces.nsIMsgHeaderParserResult);   var addrValue = {}; var nameValue = {}; var fullAddress = headerResult.getAddressAndName(addrValue, nameValue); emailAddress = addrValue.value; name = nameValue.value;     if (headerEntry.useToggle) { var addresses = {}; addresses.emailAddress = emailAddress; addresses.fullAddress = fullAddress; addresses.displayName = name;  headerEntry.enclosingBox.addAddressView(addresses); } else { updateEmailAddressNode(headerEntry.enclosingBox.emailAddressNode, emailAddress, fullAddress, name, headerEntry.useShortView); }  numAddressesParsed++; } } 
add: index++; } 
context: function OutputEmailAddresses(headerEntry, emailAddresses){  if ( !emailAddresses ) return;  if (msgHeaderParser)  {    var enumerator = msgHeaderParser.ParseHeadersWithEnumerator(emailAddresses);    enumerator = enumerator.QueryInterface(Components.interfaces.nsISimpleEnumerator);    var numAddressesParsed = 0;    if (enumerator)    {      var emailAddress = {};      var name = {};      while (enumerator.hasMoreElements())      {        var headerResult = enumerator.getNext();        headerResult = enumerator.QueryInterface(Components.interfaces.nsIMsgHeaderParserResult);                // get the email and name fields        var addrValue = {};        var nameValue = {};        var fullAddress = headerResult.getAddressAndName(addrValue, nameValue);        emailAddress = addrValue.value;        name = nameValue.value;        // if we want to include short/long toggle views and we have a long view, always add it.        // if we aren't including a short/long view OR if we are and we haven't parsed enough        // addresses to reach the cutoff valve yet then add it to the default (short) div.        if (headerEntry.useToggle)        {          var addresses = {};          addresses.emailAddress = emailAddress;          addresses.fullAddress = fullAddress;          addresses.displayName = name;          headerEntry.enclosingBox.addAddressView(addresses);        }        else        {          updateEmailAddressNode(headerEntry.enclosingBox.emailAddressNode, emailAddress, fullAddress, name, headerEntry.useShortView);        }                numAddressesParsed++;      }     } // if enumerator        if (headerEntry.useToggle)      headerEntry.enclosingBox.buildViews(gNumAddressesToShow);  } // if msgheader parser}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/4fc0e35c4e0ba09b1ebc493384e3e1e250b6dd98/msgHdrViewOverlay.js/buggy/mailnews/base/resources/content/msgHdrViewOverlay.js