rem: var folderTree = GetFolderTree(); var folderResource = GetFolderResource(folderTree, folderIndex);  var isServer = GetFolderAttribute(folderTree, folderResource, "IsServer"); if (isServer == "true") 
add: if (!pref.getBoolPref("mailnews.reuse_thread_window2")) 
context: function FolderPaneDoubleClick(folderIndex, event){    var folderTree = GetFolderTree();    var folderResource = GetFolderResource(folderTree, folderIndex);    var isServer = GetFolderAttribute(folderTree, folderResource, "IsServer");    if (isServer == "true")    {      if (!(folderTree.treeBoxObject.view.isContainerOpen(folderIndex)))      {        var msgFolder = folderResource.QueryInterface(Components.interfaces.nsIMsgFolder);        var server = msgFolder.server;        server.performExpand(msgWindow);      }    }    else if (!pref.getBoolPref("mailnews.reuse_thread_window2"))    {      // Open a new msg window only if we are double clicking on       // folders or newsgroups.      MsgOpenNewWindowForFolder(folderResource.Value, -1 /* key */);      // double clicking should not toggle the open / close state of the      // folder.  this will happen if we don't prevent the event from      // bubbling to the default handler in tree.xml      event.stopPropagation();    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/f13a4abe17586f3b8e4d8891a16d8dc330756fab/msgMail3PaneWindow.js/clean/mailnews/base/resources/content/msgMail3PaneWindow.js