add: case "cmd_newlist": var selectedDir = GetSelectedDirectory(); if (selectedDir) { var abDir = GetDirectoryFromURI(selectedDir); if (abDir) { return abDir.supportsMailingLists; } } return false; 
context:   isCommandEnabled: function(command)  {    switch (command) {      case "cmd_selectAll":        return true;      case "cmd_delete":      case "button_delete":        var numSelected;        var enabled = false;        if (gAbView && gAbView.selection) {          if (gAbView.directory)                     enabled = gAbView.directory.operations & gAbView.directory.opWrite;          numSelected = gAbView.selection.count;        }        else           numSelected = 0;        // fix me, don't update on isCommandEnabled        if (command == "cmd_delete") {          switch (GetSelectedCardTypes()) {            case kSingleListOnly:              goSetMenuValue(command, "valueList");              break;            case kMultipleListsOnly:              goSetMenuValue(command, "valueLists");              break;            case kListsAndCards:              goSetMenuValue(command, "valueItems");              break;            case kCardsOnly:            default:              if (numSelected < 2)                goSetMenuValue(command, "valueCard");              else                goSetMenuValue(command, "valueCards");              break;          }        }        return (enabled && (numSelected > 0));      case "button_edit":        return (GetSelectedCardIndex() != -1);      default:        return false;    }  },
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/48185cb8554fbc252821a984faa1f805d21605e5/abCommon.js/buggy/mailnews/addrbook/resources/content/abCommon.js