rem: var messageList = GetSelectedMessages(); numMessages = messageList.length; 
add: var messageList = GetSelectedMessages(); numMessages = messageList.length; 
context: function PrintEnginePrint(){	var messageList = GetSelectedMessages();	numMessages = messageList.length;	if (numMessages == 0)	{		dump("PrintEnginePrint(): No messages selected.\n");		return false;	}  	var selectionArray = new Array(numMessages);	for(var i = 0; i < numMessages; i++)	{		var messageResource = messageList[i].QueryInterface(Components.interfaces.nsIRDFResource);		selectionArray[i] = messageResource.Value;	}	printEngineWindow = window.openDialog("chrome://messenger/content/msgPrintEngine.xul",								                        "",								                        "chrome,dialog=no,all",								                        numMessages, selectionArray, statusFeedback);	return true;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/b28aee4dad0045eeeca0eac2603313128acc9c86/mailWindowOverlay.js/buggy/mailnews/base/resources/content/mailWindowOverlay.js