rem: var folder = GetFirstSelectedMsgFolder(); 
add: folder = GetFirstSelectedMsgFolder(); 
context: function MsgGetNextNMessages(){  if(CheckOnline()) {    var folder = GetFirstSelectedMsgFolder();    if(folder)       GetNextNMessages(folder);  }  else {    var option = PromptGetMessagesOffline();    if(option == 0) {      if (!gOfflineManager)         GetOfflineMgrService();      gOfflineManager.goOnline(false /* sendUnsentMessages */,                                false /* playbackOfflineImapOperations */,                                msgWindow);      var folder = GetFirstSelectedMsgFolder();      if(folder) {        GetNextNMessages(folder);      }    }  }   }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/7aa100f46db4925390e4fc3934cc16eabe96569c/mailWindowOverlay.js/clean/mailnews/base/resources/content/mailWindowOverlay.js