rem: var tagService = Components.classes["@mozilla.org/messenger/tagservice;1"].getService(Components.interfaces.nsIMsgTagService); 
add: var tagService = Components.classes["@mozilla.org/messenger/tagservice;1"].getService(Components.interfaces.nsIMsgTagService); 
context: function onOK(){  var name = dialog.nameField.value;  var tagService = Components.classes["@mozilla.org/messenger/tagservice;1"].getService(Components.interfaces.nsIMsgTagService);   // do name validity check? Has to be non-empty, and not existing already  try  {    var key = tagService.getKeyForTag(name);     // above will throw an error if tag doesn't exist. So if it doesn't throw an error,    // the tag exists, so alert the user and return false.  }  catch (ex) {return dialog.okCallback(name, "")}    var messengerBundle = document.getElementById("bundle_messenger");  var alertText = messengerBundle.getString("tagExists");  var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]                                .getService(Components.interfaces.nsIPromptService);  promptService.alert(window, document.title, alertText);  return false;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/38987b729d1aa6dcac6708045fdc765b1aa7be88/newTagDialog.js/buggy/mailnews/base/resources/content/newTagDialog.js