rem: prefs = Components.classes['component: 
add: prefs = Components.classes['@mozilla.org/preferences;1']; 
context: function SetDefaultMailSendCharacterSet(){  // Set the current menu selection as the default  if (currentMailSendCharset != null) {    // try to get preferences service    var prefs = null;    try {      prefs = Components.classes['component://netscape/preferences'];      prefs = prefs.getService();      prefs = prefs.QueryInterface(Components.interfaces.nsIPref);    }    catch (ex) {      dump("failed to get prefs service!\n");      prefs = null;    }	  if (msgCompose) {      // write to the pref file      prefs.SetCharPref("mailnews.send_default_charset", currentMailSendCharset);      // update the global      g_send_default_charset = currentMailSendCharset;      dump("Set send_default_charset to" + currentMailSendCharset + "\n");    }	  else		  dump("Compose has not been created!\n");  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6cc70ebd6c97bd0b2fe48c31f579e855387ced9d/MsgComposeCommands.js/buggy/mailnews/compose/resources/content/MsgComposeCommands.js