rem: MsgOpenNewWindowForMessage(uri, null); 
add: window.openDialog( "chrome: 
context: function MsgOpenFromFile(){   var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker);   var strBundleService = Components.classes["@mozilla.org/intl/stringbundle;1"].getService();   strBundleService = strBundleService.QueryInterface(Components.interfaces.nsIStringBundleService);   var extbundle = strBundleService.createBundle("chrome://messenger/locale/messenger.properties");   var filterLabel = extbundle.GetStringFromName("EMLFiles");   var windowTitle = extbundle.GetStringFromName("OpenEMLFiles");   fp.init(window, windowTitle, nsIFilePicker.modeOpen);   fp.appendFilter(filterLabel, "*.eml; *.msg");   // Default or last filter is "All Files"   fp.appendFilters(nsIFilePicker.filterAll);  try {     var ret = fp.show();     if (ret == nsIFilePicker.returnCancel)       return;   }   catch (ex) {     dump("filePicker.chooseInputFile threw an exception\n");     return;   }  var uri = fp.fileURL;  uri.query = "type=application/x-message-display";  MsgOpenNewWindowForMessage(uri, null);}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/cbaf0b43d22415e60d6dc33ff70e267af9d9fb26/mailWindowOverlay.js/clean/mailnews/base/resources/content/mailWindowOverlay.js