rem: if (!nsPrefBranch) { var prefService = Components.classes["@mozilla.org/preferences-service;1"]; prefService = prefService.getService(); prefService = prefService.QueryInterface(Components.interfaces.nsIPrefService); nsPrefBranch = prefService.getBranch(null); } 
context: function menu_new_init(){  if (!gMessengerBundle)    gMessengerBundle = document.getElementById("bundle_messenger");  if (!nsPrefBranch) {    var prefService = Components.classes["@mozilla.org/preferences-service;1"];    prefService = prefService.getService();    prefService = prefService.QueryInterface(Components.interfaces.nsIPrefService);    nsPrefBranch = prefService.getBranch(null);  }  var newAccountItem = document.getElementById('newAccountMenuItem');  if (nsPrefBranch.prefIsLocked("mail.disable_new_account_addition"))    newAccountItem.setAttribute("disabled","true");  // Change "New Folder..." menu according to the context  var folderArray = GetSelectedMsgFolders();  if (folderArray.length == 0)    return;  var msgFolder = folderArray[0];  var isServer = msgFolder.isServer;  var serverType = msgFolder.server.type;  var canCreateNew = msgFolder.canCreateSubfolders;  var isInbox = IsSpecialFolder(msgFolder, MSG_FOLDER_FLAG_INBOX);  var isIMAPFolder = serverType == "imap";  var ioService = Components.classes["@mozilla.org/network/io-service;1"]                         .getService(Components.interfaces.nsIIOService);  var showNew = ((serverType != 'nntp') && canCreateNew) || isInbox;  ShowMenuItem("menu_newFolder", showNew);  EnableMenuItem("menu_newFolder", !isIMAPFolder || !ioService.offline);  if (showNew)  {    if (isServer || isInbox)      SetMenuItemLabel("menu_NewFolder",        gMessengerBundle.getString("newFolder"));    else      SetMenuItemLabel("menu_NewFolder",        gMessengerBundle.getString("newSubfolder"));  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/7cb00076c55ebf89f74d18f62ce8512b7ca5846f/mailWindowOverlay.js/buggy/mailnews/base/resources/content/mailWindowOverlay.js