rem: var folders = GetSelectedMsgFolders(); var compositeDataSource = GetCompositeDataSource("GetNewMessages"); GetNewMessages(folders, compositeDataSource); 
add: if(CheckOnline()) { GetFolderMessages(); } else { var option = PromptGetMessagesOffline(); if(option == 0) { if (!gOfflineManager) GetOfflineMgrService(); gOfflineManager.goOnline(false /* sendUnsentMessages */, false /* playbackOfflineImapOperations */, msgWindow); GetFolderMessages(); } } 
context: function MsgGetMessage(){    var folders = GetSelectedMsgFolders();    var compositeDataSource = GetCompositeDataSource("GetNewMessages");    GetNewMessages(folders, compositeDataSource);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/4ef34e1cf9a252ce2524634b9d502992e1411965/mailWindowOverlay.js/buggy/mailnews/base/resources/content/mailWindowOverlay.js