rem: try { HideAccountCentral(); OpenTwistyForServer(server); var inboxFolder    = GetInboxFolder(server); var folderTree     = GetFolderTree(); var inboxFolderUri = document.getElementById(inboxFolder.URI); ChangeSelection(folderTree, inboxFolderUri); 
add: try { HideAccountCentral(); OpenTwistyForServer(server); var inboxFolder    = GetInboxFolder(server); var folderTree     = GetFolderTree(); var inboxFolderUri = document.getElementById(inboxFolder.URI); ChangeSelection(folderTree, inboxFolderUri);  if(CheckOnline()) { GetMessagesForInboxOnServer(server); } else { var option = PromptGetMessagesOffline(); if(option == 0) { if (!gOfflineManager) GetOfflineMgrService();  gOfflineManager.goOnline(false /* sendUnsentMessages */, false /* playbackOfflineImapOperations */, msgWindow); 
context: function OpenInboxForServer(server){    try {        HideAccountCentral();        OpenTwistyForServer(server);        var inboxFolder    = GetInboxFolder(server);        var folderTree     = GetFolderTree();        var inboxFolderUri = document.getElementById(inboxFolder.URI);        ChangeSelection(folderTree, inboxFolderUri);        GetMessagesForInboxOnServer(server);    }    catch (ex) {        dump("Error opening inbox for server -> " + ex + "\n");        return;    }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/a5014eeb9603f1fcb5a28bfecb6ff6bcc4ee3e1e/mailWindow.js/clean/mailnews/base/resources/content/mailWindow.js