rem: if (mapiRegistry) { if (document.getElementById("mailnewsEnableMapi").checked) mapiRegistry.setDefaultMailClient(); else mapiRegistry.unsetDefaultMailClient(); } 
add: if (mapiRegistry && ("mapiPref" in parent) && (mapiRegistry.isDefaultMailClient != parent.mapiPref.isDefaultMailClient)) { mapiRegistry.isDefaultMailClient = parent.mapiPref.isDefaultMailClient ; } 
context: function onOK(){    try {        var mapiRegistry = Components.classes[ "@mozilla.org/mapiregistry;1" ].                   getService( Components.interfaces.nsIMapiRegistry );    }    catch(ex){        mapiRegistry = null;    }     if (mapiRegistry) {         if (document.getElementById("mailnewsEnableMapi").checked)            mapiRegistry.setDefaultMailClient();        else            mapiRegistry.unsetDefaultMailClient();    }  }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/6f0109b54cb75defe4706cd7a0a9e68ed8644815/pref-mailnewsOverlay.js/buggy/mailnews/mapi/resources/content/pref-mailnewsOverlay.js