add: var i; 
context: function GetMessagesForAllAuthenticatedAccounts(){  // now log into any server  try  {    var allServers = accountManager.allServers;    // array of isupportsarrays of servers for a particular folder    var pop3DownloadServersArray = new Array;     // parallel isupports array of folders to download to...    var localFoldersToDownloadTo = Components.classes["@mozilla.org/supports-array;1"].createInstance(Components.interfaces.nsISupportsArray);    var pop3Server;    for (var i=0;i<allServers.Count();i++)    {      var currentServer = allServers.GetElementAt(i).QueryInterface(Components.interfaces.nsIMsgIncomingServer);      var protocolinfo = Components.classes["@mozilla.org/messenger/protocol/info;1?type=" + currentServer.type].getService(Components.interfaces.nsIMsgProtocolInfo);      if (protocolinfo.canGetMessages && !currentServer.passwordPromptRequired)      {        if (currentServer.type == "pop3")        {          CoalesceGetMsgsForPop3ServersByDestFolder(currentServer, pop3DownloadServersArray, localFoldersToDownloadTo);          pop3Server = currentServer.QueryInterface(Components.interfaces.nsIPop3IncomingServer);        }        else        // get new messages on the server for imap or rss          GetMessagesForInboxOnServer(currentServer);      }    }    for (var i = 0; i < pop3DownloadServersArray.length; i++)    {      // any ol' pop3Server will do - the serversArray specifies which servers to download from      pop3Server.downloadMailFromServers(pop3DownloadServersArray[i], msgWindow, localFoldersToDownloadTo.GetElementAt(i), null);    }  }  catch(ex)  {      dump(ex + "\n");  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/661675409b022cbe96219c85bf01780e2ae45248/mailWindowOverlay.js/buggy/mail/base/content/mailWindowOverlay.js