rem: var allKeys = tagService.keyEnumerator; while (allKeys.hasMore()) 
add: var tagArray = tagService.getAllTags({}); for (var i = 0; i < tagArray.length; ++i) 
context: function ToggleMessageTagKey(index){  if (GetNumSelectedMessages() < 1)    return;  // toggle the tag state based upon that of the first selected message  var msgHdr = gDBView.hdrForFirstSelectedMessage;  var tagService = Components.classes["@mozilla.org/messenger/tagservice;1"]                             .getService(Components.interfaces.nsIMsgTagService);  var allKeys = tagService.keyEnumerator;  while (allKeys.hasMore())   {    var key = allKeys.getNext();    if (!--index)     {      // found the key, now toggle its state      var curKeys = msgHdr.getStringProperty("keywords");      if (msgHdr.label)        curKeys += " $label" + msgHdr.label;      var addKey  = (" " + curKeys + " ").indexOf(" " + key + " ") < 0;      ToggleMessageTag(key, addKey);      return;    }  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/2cd6f3b234aa0a757066a0d5aac472ca6cac4b73/mailWindowOverlay.js/buggy/mailnews/base/resources/content/mailWindowOverlay.js