rem: var server = GetMsgFolderFromUri(parent.pendingServerId, false).server; 
add: var server = GetMsgFolderFromUri(aServerId, false).server; 
context: function onInit(){  // manually adjust several pref UI elements  document.getElementById('spamLevel').checked =    document.getElementById('server.spamLevel').value > 0;      var spamActionTargetAccount = document.getElementById('server.spamActionTargetAccount').value;  if (!spamActionTargetAccount)  {    var server = GetMsgFolderFromUri(parent.pendingServerId, false).server;    if (server.canCreateFoldersOnServer && server.canSearchMessages)      spamActionTargetAccount = parent.pendingServerId;    else      spamActionTargetAccount = parent.accountManager.localFoldersServer.serverURI;    document.getElementById('server.spamActionTargetAccount').value = spamActionTargetAccount;  }  SetFolderPicker(spamActionTargetAccount, 'actionTargetAccount');  var spamActionTargetFolder = document.getElementById('server.spamActionTargetFolder').value;  if (!spamActionTargetFolder)  {    spamActionTargetFolder = parent.accountManager.localFoldersServer.serverURI + "/Junk";    document.getElementById('server.spamActionTargetFolder').value = spamActionTargetFolder;  }  SetFolderPicker(spamActionTargetFolder, 'actionTargetFolder');    // set up the whitelist UI  document.getElementById("whiteListAbURI").value =    document.getElementById("server.whiteListAbURI").value;    // set up trusted IP headers  var serverFilterList = document.getElementById("useServerFilterList");  serverFilterList.value =    document.getElementById("server.serverFilterName").value;  if (!serverFilterList.selectedItem)    serverFilterList.selectedIndex = 0;     updateMoveTargetMode(document.getElementById('server.moveOnSpam').checked);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10234/19f4c2484c3051a8c9b77d1c4f9a7d27e1173f1c/am-junk.js/buggy/mailnews/base/prefs/resources/content/am-junk.js