rem: var mailCharacterSet = "charset=" + msgWindow.mailCharacterSet;  for (var i = 0; i < numMessages; i++) {  var url = mailSession.ConvertMsgURIToMsgURL(messages[i], msgWindow);  window.openDialog( "chrome: "_blank", "scrollbars,resizable,chrome,dialog=no", url, mailCharacterSet); } return true; } catch (e) {  return false; 
add: for (var i = 0; i < numMessages; i++) {  var url = mailSession.ConvertMsgURIToMsgURL(messages[i], msgWindow); window.openDialog("chrome: "_blank", "all,dialog=no", url, mailCharacterSet); 
context: function ViewPageSource(messages){  var numMessages = messages.length;  if (numMessages == 0)  {    dump("MsgViewPageSource(): No messages selected.\n");    return false;  }    try {        // First, get the mail session        const mailSessionContractID = "@mozilla.org/messenger/services/session;1";        const nsIMsgMailSession = Components.interfaces.nsIMsgMailSession;        var mailSession = Components.classes[mailSessionContractID].getService(nsIMsgMailSession);        var mailCharacterSet = "charset=" + msgWindow.mailCharacterSet;        for (var i = 0; i < numMessages; i++)        {            // Now, we need to get a URL from a URI            var url = mailSession.ConvertMsgURIToMsgURL(messages[i], msgWindow);            window.openDialog( "chrome://global/content/viewSource.xul",                               "_blank",                               "scrollbars,resizable,chrome,dialog=no",                               url,                               mailCharacterSet);        }        return true;    } catch (e) {        // Couldn't get mail session        return false;    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/ffa41cfcf951cdbd3a0bb1c25e53752950210b43/mailCommands.js/buggy/mail/base/content/mailCommands.js