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: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/a4c3564dfb6502479de45b1f1df135ee63ce65f7/pref-mailnewsOverlay.js/clean/mailnews/mapi/resources/content/pref-mailnewsOverlay.js