rem: var prefs = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref); prefs.SetBoolPref("mailnews.offline_sync_mail", gSyncMail); prefs.SetBoolPref("mailnews.offline_sync_news", gSyncNews); prefs.SetBoolPref("mailnews.offline_sync_send_unsent", gSendMessage); prefs.SetBoolPref("mailnews.offline_sync_work_offline", gWorkOffline); 
add: var prefs = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch); prefs.setBoolPref("mailnews.offline_sync_mail", gSyncMail); prefs.setBoolPref("mailnews.offline_sync_news", gSyncNews); prefs.setBoolPref("mailnews.offline_sync_send_unsent", gSendMessage); prefs.setBoolPref("mailnews.offline_sync_work_offline", gWorkOffline); 
context: function syncOkButton(){    gSyncMail = document.getElementById("syncMail").checked;    gSyncNews = document.getElementById("syncNews").checked;	    gSendMessage = document.getElementById("sendMessage").checked;    gWorkOffline = document.getElementById("workOffline").checked;    var prefs = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref);    prefs.SetBoolPref("mailnews.offline_sync_mail", gSyncMail);    prefs.SetBoolPref("mailnews.offline_sync_news", gSyncNews);    prefs.SetBoolPref("mailnews.offline_sync_send_unsent", gSendMessage);    prefs.SetBoolPref("mailnews.offline_sync_work_offline", gWorkOffline);        if( gSyncMail || gSyncNews || gSendMessage || gWorkOffline) {        var offlineManager = Components.classes["@mozilla.org/messenger/offline-manager;1"].getService(Components.interfaces.nsIMsgOfflineManager);        if(offlineManager)            offlineManager.synchronizeForOffline(gSyncNews, gSyncMail, gSendMessage, gWorkOffline, gParentMsgWindow)    }	    return true;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/faf03ce445712b372523f881cc3144cfadc7a611/msgSynchronize.js/clean/mailnews/base/resources/content/msgSynchronize.js