rem: EnableMenuItem("folderPaneContext-new", true); 
add: EnableMenuItem("folderPaneContext-new", !isIMAPFolder || !ioService.offline); 
context: function SetupNewMenuItem(folderResource, numSelected, isServer, serverType, specialFolder){  var folderTree = GetFolderTree();  var canCreateNew = GetFolderAttribute(folderTree, folderResource, "CanCreateSubfolders") == "true";  var isInbox = specialFolder == "Inbox";  var showNew = ((numSelected <=1) && (serverType != 'nntp') && canCreateNew) || isInbox;  ShowMenuItem("folderPaneContext-new", showNew);  EnableMenuItem("folderPaneContext-new", true);  if(showNew)  {    if(isServer || isInbox)      SetMenuItemLabel("folderPaneContext-new", gMessengerBundle.getString("newFolder"));    else      SetMenuItemLabel("folderPaneContext-new", gMessengerBundle.getString("newSubfolder"));  }}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/6b12b45b588540c81446261fefeb1ad16a19de34/mailContextMenus.js/clean/mailnews/base/resources/content/mailContextMenus.js