rem: var folder = GetLoadedMsgFolder(); 
add: var message = RDF.GetResource(messageUri); message = message.QueryInterface(Components.interfaces.nsIMessage); var folder = message.msgFolder; 
context: function MsgOpenNewWindowForMessage(messageUri, folderUri){	if(!messageUri)	{		var message = GetLoadedMessage();		var messageResource = message.QueryInterface(Components.interfaces.nsIRDFResource);		messageUri = messageResource.Value;	}	if(!folderUri)	{		var folder = GetLoadedMsgFolder();		var folderResource = folder.QueryInterface(Components.interfaces.nsIRDFResource);		folderUri = folderResource.Value;	}	if(messageUri && folderUri)	{		window.openDialog( "chrome://messenger/content/messageWindow.xul", "_blank", "chrome,all,dialog=no", messageUri, folderUri );	}}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/7453040ba673a4b175112415ff2092ae2319b6e2/mailWindowOverlay.js/clean/mailnews/base/resources/content/mailWindowOverlay.js