rem: if ((top.MAX_RECIPIENTS == 0 && ((msgType == msgComposeType.New) || (msgType == msgComposeType.ForwardAsAttachment) || (msgType == msgComposeType.ForwardInline))) || top.MAX_RECIPIENTS == 0) _awSetInputAndPopup("", "addr_to", newTreeChildrenNode, templateNode); 
add: if (!msgCompFields.to && !msgCompFields.newsgroups) _awSetInputAndPopup("", "addr_to", newTreeChildrenNode, templateNode); 
context: function CompFields2Recipients(msgCompFields, msgType){  if (msgCompFields)  {      var treeChildren = document.getElementById('addressWidgetBody');      var newTreeChildrenNode = treeChildren.cloneNode(false);      var templateNode = treeChildren.firstChild;    top.MAX_RECIPIENTS = 0;    awSetInputAndPopupFromArray(msgCompFields.SplitRecipients(msgCompFields.replyTo, false), "addr_reply", newTreeChildrenNode, templateNode);    awSetInputAndPopupFromArray(msgCompFields.SplitRecipients(msgCompFields.to, false), "addr_to", newTreeChildrenNode, templateNode);    awSetInputAndPopupFromArray(msgCompFields.SplitRecipients(msgCompFields.cc, false), "addr_cc", newTreeChildrenNode, templateNode);    awSetInputAndPopupFromArray(msgCompFields.SplitRecipients(msgCompFields.bcc, false), "addr_bcc", newTreeChildrenNode, templateNode);    awSetInputAndPopup(msgCompFields.otherRandomHeaders, "addr_other", newTreeChildrenNode, templateNode);    awSetInputAndPopup(msgCompFields.newsgroups, "addr_newsgroups", newTreeChildrenNode, templateNode);    awSetInputAndPopup(msgCompFields.followupTo, "addr_followup", newTreeChildrenNode, templateNode);    //If it's a new message, we need to add an extrat empty recipient.    var msgComposeType = Components.interfaces.nsIMsgCompType;    if ((top.MAX_RECIPIENTS == 0 && ((msgType == msgComposeType.New) || (msgType == msgComposeType.ForwardAsAttachment) || (msgType == msgComposeType.ForwardInline))) || top.MAX_RECIPIENTS == 0)        _awSetInputAndPopup("", "addr_to", newTreeChildrenNode, templateNode);    dump("replacing child in comp fields 2 recips \n");      var parent = treeChildren.parentNode;      parent.replaceChild(newTreeChildrenNode, treeChildren);      awFitDummyRows();        setTimeout("awFinishCopyNodes();", 0);  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/4660f789c6336b14f9bc1c4ff7d7bcecae86148e/addressingWidgetOverlay.js/buggy/mailnews/compose/resources/content/addressingWidgetOverlay.js