rem: var numMessages = messages.length; 
add: var numMessages = messages.length; 
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://navigator/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/2006_temp/2006/9421/e870274c1fab3343b4266c8a864a953f337b6402/mailCommands.js/buggy/mailnews/base/resources/content/mailCommands.js