rem: noHtmlRecipients = ""; 
add: var msgCompFields = msgCompose.compFields; noHtmlRecipients = msgCompFields.GetTo() + "," + msgCompFields.GetCc() + "," + msgCompFields.GetBcc(); } dump("DetermineHTMLAction: noHtmlRecipients are " + noHtmlRecipients + "\n");   try { noHtmlnewsgroups = msgCompose.GetNoHtmlNewsgroups(null); } catch(ex) { noHtmlnewsgroups = msgCompose.compFields.GetNewsgroups(); 
context: function DetermineHTMLAction(){    if (! msgCompose.composeHTML)        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 newsgroups;        //Check the address book for the HTML property for each recipient        try {            noHtmlRecipients = msgCompose.GetNoHtmlRecipients(null);        } catch(ex)        {            noHtmlRecipients = "";        }                //Check newsgroups now...        try {            newsgroups = msgCompose.GetNoHtmlNewsgroups(null);        } catch(ex)        {           newsgroups = msgCompose.compFields.GetNewsgroups();        }                if (noHtmlRecipients != "" || newsgroups != "")        {                        //Do we really need to send in HTML?            //FIX ME: need to ask editor is the body containg any formatting or non plaint text elements.                        if (newsgroups == "")            {                //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.                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;    }    return sendFormat;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/3c05a8ded2b16d58855581333bb91e8b0e3529cb/MsgComposeCommands.js/clean/mailnews/compose/resources/content/MsgComposeCommands.js