rem: aSettings.actionTargetFolder = document.getElementById("actionTargetFolder").getAttribute("uri"); 
add: var targetFolderURI = document.getElementById("actionTargetFolder").getAttribute("uri"); if (targetFolderURI) aSettings.actionTargetFolder = targetFolderURI; else {   aSettings.actionTargetFolder = kJunkOnLocalFolderURI; } 
context: function storeSettings(aSettings, aLoggingEnabled){  aSettings.level = document.getElementById("level").checked ? 100 : 0;  aSettings.moveOnSpam = document.getElementById("moveOnSpam").checked;  aSettings.moveTargetMode = document.getElementById("moveTargetMode").value;  aSettings.actionTargetAccount = document.getElementById("actionTargetAccount").getAttribute("uri");  aSettings.actionTargetFolder = document.getElementById("actionTargetFolder").getAttribute("uri");  aSettings.purge = document.getElementById("purge").checked;  aSettings.purgeInterval = document.getElementById("purgeInterval").value;  aSettings.useWhiteList = document.getElementById("useWhiteList").checked;  aSettings.whiteListAbURI = document.getElementById("whiteListAbURI").selectedItem.getAttribute("id");  aSettings.loggingEnabled = aLoggingEnabled;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/c07a030f4c3c4edf405b0234b8baf2515743d3a1/junkMail.js/buggy/mailnews/base/resources/content/junkMail.js