rem: mailList.removeEmailAddressAt(pos); 
add: try { mailList.addressLists.DeleteElementAt(pos); } catch(ex) {    } 
context: function GetListValue(mailList, doAdd){  mailList.listName = document.getElementById('ListName').value;  if (mailList.listName.length == 0)  {    var alertText = gAddressBookBundle.getString("emptyListName");    alert(alertText);    return false;  }  else  {    var listname = mailList.listName;    listname = listname.toLowerCase();    oldListName = oldListName.toLowerCase();    if (doAdd == true)    {      if (mailingListExists(listname))        return false;    }    else if (oldListName != listname)    {      if (mailingListExists(listname))        return false;    }  }  mailList.listNickName = document.getElementById('ListNickName').value;  mailList.description = document.getElementById('ListDescription').value;  var oldTotal = mailList.addressLists.Count();  var i = 1;  var pos = 0;  var inputField, fieldValue, cardproperty;  while ((inputField = awGetInputElement(i)))  {          fieldValue = inputField.value;    if (doAdd || (doAdd == false && pos >= oldTotal))      cardproperty = Components.classes["@mozilla.org/addressbook/cardproperty;1"].createInstance();    else      cardproperty = mailList.addressLists.GetElementAt(pos);    if (fieldValue == "")    {      if (doAdd == false && cardproperty)        mailList.removeEmailAddressAt(pos);    }    else if (cardproperty)    {      cardproperty = cardproperty.QueryInterface(Components.interfaces.nsIAbCard);      if (cardproperty)      {        var beginpos = fieldValue.search('<');        var endpos = fieldValue.search('>');        if (beginpos != -1)        {          beginpos++;          var newValue = fieldValue.slice(beginpos, endpos);          cardproperty.primaryEmail = newValue;        }        else          cardproperty.primaryEmail = fieldValue;        if (doAdd || (doAdd == false && pos >= oldTotal))          mailList.addressLists.AppendElement(cardproperty);        pos++;      }    }      i++;  }  if (doAdd == false && i < oldTotal)  {    for (var j = i; j < oldTotal; j++)      mailList.addressLists.RemoveElementAt(j);  }  return true;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/1245aeccbf17c85b8ac372ba8d358d776eb1ab83/abMailListDialog.js/clean/mailnews/addrbook/resources/content/abMailListDialog.js