rem: SetFolderPicker(document.getElementById('server.spamActionTargetAccount').value, 'actionTargetAccount'); SetFolderPicker(document.getElementById('server.spamActionTargetFolder').value, 'actionTargetFolder'); 
add: 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'); 
context: function onInit(){  // manually adjust several pref UI elements  document.getElementById('spamLevel').checked =    document.getElementById('server.spamLevel').value > 0;      SetFolderPicker(document.getElementById('server.spamActionTargetAccount').value,                  'actionTargetAccount');  SetFolderPicker(document.getElementById('server.spamActionTargetFolder').value,                  '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: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/e4a929137c142f7fe95db4c6be5e4165df8e696c/am-junk.js/buggy/mailnews/base/prefs/resources/content/am-junk.js