rem: var noHtmlRecipients; 
add: var noHtmlRecipients = new String(""); 
context: function DetermineHTMLAction(convertible){    if (! msgCompose.composeHTML)    {        try {            msgCompose.CheckAndPopulateRecipients(true, false);        } catch(ex) {}        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;        //Check the address book for the HTML property for each recipient        try {            noHtmlRecipients = msgCompose.CheckAndPopulateRecipients(true, true);        } catch(ex)        {            var msgCompFields = msgCompose.compFields;            noHtmlRecipients = msgCompFields.GetTo() + "," + msgCompFields.GetCc() + "," + msgCompFields.GetBcc();        }        dump("DetermineHTMLAction: noHtmlRecipients are " + noHtmlRecipients + "\n");        //Check newsgroups now...        try {            noHtmlnewsgroups = msgCompose.GetNoHtmlNewsgroups(null);        } catch(ex)        {           noHtmlnewsgroups = msgCompose.compFields.GetNewsgroups();        }                if (noHtmlRecipients != "" || noHtmlnewsgroups != "")        {            if (convertible == msgCompConvertible.Plain)              return msgCompSendFormat.PlainText;                        if (noHtmlnewsgroups == "")            {                //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 {			  msgCompose.CheckAndPopulateRecipients(true, false);		  } catch(ex) {}	  }    return sendFormat;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/f50ca26bd5789ebaf4794840d91bbdaf872d4b4f/MsgComposeCommands.js/buggy/mailnews/compose/resources/content/MsgComposeCommands.js