rem: var obj = new Object; msgCompose.CheckAndPopulateRecipients(true, false, obj); 
add: obj = new Object; msgCompose.CheckAndPopulateRecipients(true, false, obj); 
context: function DetermineHTMLAction(convertible){    if (! msgCompose.composeHTML)    {        try {            var obj = new Object;            msgCompose.CheckAndPopulateRecipients(true, false, obj);        } catch(ex) { dump("msgCompose.CheckAndPopulateRecipients failed: " + ex + "\n"); }        return msgCompSendFormat.PlainText;    }    if (sendFormat == msgCompSendFormat.AskUser)    {        //Well, before we ask, see if we can figure out what to do for ourselves        var noHtmlRecipients;        var noHtmlnewsgroups;        var preferFormat;        //Check the address book for the HTML property for each recipient        try {            var obj = new Object;            preferFormat = msgCompose.CheckAndPopulateRecipients(true, true, obj);            noHtmlRecipients = obj.value;        } catch(ex)        {            dump("msgCompose.CheckAndPopulateRecipients failed: " + ex + "\n");            var msgCompFields = msgCompose.compFields;            noHtmlRecipients = msgCompFields.to + "," + msgCompFields.cc + "," + msgCompFields.bcc;            preferFormat = abPreferMailFormat.unknown;        }        dump("DetermineHTMLAction: preferFormat = " + preferFormat + ", noHtmlRecipients are " + noHtmlRecipients + "\n");        //Check newsgroups now...        try {            noHtmlnewsgroups = msgCompose.GetNoHtmlNewsgroups(null);        } catch(ex)        {           noHtmlnewsgroups = msgCompose.compFields.newsgroups;        }        if (noHtmlRecipients != "" || noHtmlnewsgroups != "")        {            if (convertible == msgCompConvertible.Plain)              return msgCompSendFormat.PlainText;            if (noHtmlnewsgroups == "")            {                switch (preferFormat)                {                  case abPreferMailFormat.plaintext :                    return msgCompSendFormat.PlainText;                  default :                    //See if a preference has been set to tell us what to do. Note that we do not honor that                    //preference for newsgroups. Only for e-mail addresses.                    var action = prefs.GetIntPref("mail.default_html_action");                    switch (action)                    {                        case msgCompSendFormat.PlainText    :                        case msgCompSendFormat.HTML         :                        case msgCompSendFormat.Both         :                            return action;                    }                }            }            return msgCompSendFormat.AskUser;        }        else            return msgCompSendFormat.HTML;    }	  else	  {		  try {        var obj = new Object;			  msgCompose.CheckAndPopulateRecipients(true, false, obj);		  } catch(ex) { dump("msgCompose.CheckAndPopulateRecipients failed: " + ex + "\n"); }	  }    return sendFormat;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/e12b66a6f8a568537db7691a29fe58c0ff3da143/MsgComposeCommands.js/buggy/mailnews/compose/resources/content/MsgComposeCommands.js