rem: try { var allServers = accountManager.allServers;  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.password) {  GetMessagesForInboxOnServer(currentServer); } } 
add: if(CheckOnline()) { GetMessagesForAllAuthenticatedAccounts(); } else { var option = PromptGetMessagesOffline(); if(option == 0) { if (!gOfflineManager) GetOfflineMgrService(); gOfflineManager.goOnline(false /* sendUnsentMessages */, false /* playbackOfflineImapOperations */, msgWindow); GetMessagesForAllAuthenticatedAccounts(); 
context: function MsgGetMessagesForAllAuthenticatedAccounts(){    try    {        var allServers = accountManager.allServers;        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.password)            {                // Get new messages now                GetMessagesForInboxOnServer(currentServer);            }        }    }    catch(ex)    {        dump(ex + "\n");    }}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/a5014eeb9603f1fcb5a28bfecb6ff6bcc4ee3e1e/mailWindowOverlay.js/buggy/mailnews/base/resources/content/mailWindowOverlay.js