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: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/5326413e005d43e2d1bafa7b9520ec4af8868757/mailWindowOverlay.js/buggy/mailnews/base/resources/content/mailWindowOverlay.js