rem: var controls = getControls(); 
add:  if (gServerSettings.serverType == "pop3") { var radioGroup = document.getElementById("folderStorage"); var gPrefsBundle = document.getElementById("bundle_prefs"); 
context: function onOk(){  var controls = getControls();  radioGroup = document.getElementById("folderStorage");  gPrefsBundle = document.getElementById("bundle_prefs");  // if this account wasn't deferred, and is now...  if (radioGroup.value != 1 && !gFirstDeferredAccount.length)  {     var confirmDeferAccount =        gPrefsBundle.getString("confirmDeferAccount");      var confirmTitle = gPrefsBundle.getString("confirmDeferAccountTitle");      var promptService =        Components.classes["@mozilla.org/embedcomp/prompt-service;1"].                   getService(Components.interfaces.nsIPromptService);      if (!promptService ||          !promptService.confirm(window, confirmTitle, confirmDeferAccount))        return;  }  switch (radioGroup.value)  {    case "0":      gServerSettings['deferredToAccount'] = getLocalFoldersAccount().key;      break;    case "1":      gServerSettings['deferredToAccount'] = "";      break;    case "2":      picker = document.getElementById("deferedServerFolderPicker");      var server = GetMsgFolderFromUri(picker.getAttribute("uri"), false).server;      var account = gAccountManager.FindAccountForServer(server);      gServerSettings['deferredToAccount'] = account.key;      break;  }  for (var i = 0; i < controls.length; i++)  {    var slot = controls[i].id;    if (slot in gServerSettings)    {      if (controls[i].localName == "checkbox")        gServerSettings[slot] = controls[i].checked;      else        gServerSettings[slot] = controls[i].value;    }  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/fb9b9603afbe64e288f5189ee3b8959bffc53d4a/am-server-advanced.js/clean/mailnews/base/prefs/resources/content/am-server-advanced.js