rem:  imapServer.dualUseFolders = (document.getElementById("imap.dualUseFolders").value == "true" ? true : false); imapServer.usingSubscription = (document.getElementById("imap.usingSubscription").value == "true" ? true : false); 
add: imapServer.dualUseFolders = document.getElementById("imap.dualUseFolders").checked  imapServer.usingSubscription = document.getElementById("imap.usingSubscription").checked; 
context: function getImapServer() {    var imapServer = new Array;    // boolean prefs, need to do special convertion        imapServer.dualUseFolders =        (document.getElementById("imap.dualUseFolders").value == "true" ?         true : false);    imapServer.usingSubscription =        (document.getElementById("imap.usingSubscription").value == "true" ? true : false);    // string prefs    imapServer.personalNamespace = document.getElementById("imap.personalNamespace").value;    imapServer.publicNamespace = document.getElementById("imap.publicNamespace").value;    imapServer.serverDirectory = document.getElementById("imap.serverDirectory").value;    imapServer.otherUsersNamespace = document.getElementById("imap.otherUsersNamespace").value;    // boolean prefs, need to do special convertion        imapServer.overrideNamespaces =        (document.getElementById("imap.overrideNamespaces").value == "true" ? true : false);    return imapServer;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6cc5ec69b96e4277905b0ad73d1811c314a7648d/am-server.js/buggy/mailnews/base/prefs/resources/content/am-server.js