rem: var defaultSmtpServerKey = gPrefBranch.getCharPref("mail.smtp.defaultserver"); var prefString = "mail.smtpserver."+ defaultSmtpServerKey + ".advanced.disable"; 
add: if (defaultSmtpServer) { var defaultSmtpServerKey = gPrefBranch.getCharPref("mail.smtp.defaultserver"); var prefString = "mail.smtpserver."+ defaultSmtpServerKey + ".advanced.disable"; 
context: function onLoad(){    parent.onPanelLoaded('am-smtp.xul');    var defaultSmtpServer = null;    try {        defaultSmtpServer = smtpService.defaultServer;    }    catch (ex) {        defaultSmtpServer = null;    }    initSmtpSettings(defaultSmtpServer);    // Get the default smtp server preference to check if we need to lock the    // advance button on the panel.     var defaultSmtpServerKey = gPrefBranch.getCharPref("mail.smtp.defaultserver");    var prefString = "mail.smtpserver."+ defaultSmtpServerKey + ".advanced.disable";     var advButton = document.getElementById("smtp.advancedbutton");    if (gPrefBranch.prefIsLocked(prefString)) {      advButton.setAttribute("disabled", "true");    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/100f9782b1094f77d32cac9222cb24fea537f5d4/am-smtp.js/clean/mailnews/base/prefs/resources/content/am-smtp.js