rem: var layoutType = gPrefs.GetIntPref("mail.pane_config"); 
add: var layoutType = gPrefs.getIntPref("mail.pane_config"); 
context: function MsgOpenNewWindowForFolder(uri, key){  var uriToOpen = uri;  var keyToSelect = key;  if (!uriToOpen)  {    var folder = GetLoadedMsgFolder();    var folderResource = folder.QueryInterface(Components.interfaces.nsIRDFResource);    uriToOpen = folderResource.Value;  }  if (uriToOpen) {    var layoutType = gPrefs.GetIntPref("mail.pane_config");    if(layoutType == 0)      window.openDialog("chrome://messenger/content/messenger.xul", "_blank", "chrome,all,dialog=no", {uri: uriToOpen, key: keyToSelect});    else      window.openDialog("chrome://messenger/content/mail3PaneWindowVertLayout.xul", "_blank", "chrome,all,dialog=no", {uri: uriToOpen, key: keyToSelect});  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/faf03ce445712b372523f881cc3144cfadc7a611/mailWindowOverlay.js/buggy/mailnews/base/resources/content/mailWindowOverlay.js