add: setupCopiesAndFoldersServer(gCurrentAccount);  
context: function FinishAccount() {  try {    var pageData = GetPageData();    var accountData= gCurrentAccountData;        if (!accountData)    {      accountData = new Object;      // Time to set the smtpRequiresUsername attribute      if (!serverIsNntp(pageData))        accountData.smtpRequiresUsername = true;    }        // we may need local folders before account is "Finished"    // if it's a pop3 account which defers to Local Folders.    verifyLocalFoldersAccount(gCurrentAccount);    PageDataToAccountData(pageData, accountData);    FixupAccountDataForIsp(accountData);        // we might be simply finishing another account    if (!gCurrentAccount)        gCurrentAccount = createAccount(accountData);    // transfer all attributes from the accountdata    finishAccount(gCurrentAccount, accountData);        if (!serverIsNntp(pageData))        EnableCheckMailAtStartUpIfNeeded(gCurrentAccount);    if (!document.getElementById("downloadMsgs").hidden) {      if (document.getElementById("downloadMsgs").checked) {        window.opener.gNewAccountToLoad = gCurrentAccount; // load messages for new POP account      }      else if (gCurrentAccount == am.defaultAccount) {        // stop check for msgs when this is first account created from new profile        window.opener.gLoadStartFolder = false;      }    }    // in case we crash, force us a save of the prefs file NOW    try {      am.saveAccountInfo();    }     catch (ex) {      dump("Error saving account info: " + ex + "\n");    }    window.close();    if(top.okCallback)    {        var state = true;        //dump("finish callback");        top.okCallback(state);    }}  catch(ex) {    dump("FinishAccount failed, " + ex +"\n");  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/646dbcbcbd6a96e99032f2c3892ca3c57badcd0e/AccountWizard.js/buggy/mailnews/base/prefs/resources/content/AccountWizard.js