rem: DropListAddress(card.primaryEmail); 
add: { var address; if (card.name.length) address = card.name + " <" + card.primaryEmail + ">"; else address = card.primaryEmail; DropListAddress(address); } 
context: function DropOnAddressListTree(event){	var rdf = Components.classes["component://netscape/rdf/rdf-service"].getService();	if (rdf)   		rdf = rdf.QueryInterface(Components.interfaces.nsIRDFService);	if (!rdf) return(false);	var dragService = Components.classes["component://netscape/widget/dragservice"].getService();	if (dragService) 		dragService = dragService.QueryInterface(Components.interfaces.nsIDragService);	if (!dragService)	return(false);		var dragSession = dragService.getCurrentSession();	if ( !dragSession )	return(false);	var trans = Components.classes["component://netscape/widget/transferable"].createInstance(Components.interfaces.nsITransferable);	if ( !trans ) return(false);	trans.addDataFlavor("text/nsabcard");	for ( var i = 0; i < dragSession.numDropItems; ++i )	{		dragSession.getData ( trans, i );		dataObj = new Object();		bestFlavor = new Object();		len = new Object();		trans.getAnyTransferData ( bestFlavor, dataObj, len );		if ( dataObj )	dataObj = dataObj.value.QueryInterface(Components.interfaces.nsISupportsWString);		if ( !dataObj )	continue;		// pull the URL out of the data object		var sourceID = dataObj.data.substring(0, len.value);		if (!sourceID)	continue;		var cardResource = rdf.GetResource(sourceID);		var card = cardResource.QueryInterface(Components.interfaces.nsIAbCard);				if (card.isMailList)			DropListAddress(card.name); 		else			DropListAddress(card.primaryEmail); 			}	return(false);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/167690eb3a24df86b2c2e0bcfa439cf0ec2e2f47/abMailListDialog.js/clean/mailnews/addrbook/resources/content/abMailListDialog.js