rem: if(CheckOnline()) { SendUnsentMessages(); } else { var option = PromptSendMessagesOffline(); if(option == 0) { if (!gOfflineManager) GetOfflineMgrService(); gOfflineManager.goOnline(false /* sendUnsentMessages */, false /* playbackOfflineImapOperations */, msgWindow); SendUnsentMessages(); } } 
add: if (MailOfflineMgr.isOnline()) SendUnsentMessages(); else MailOfflineMgr.goOnlineToSendMessages(msgWindow); 
context: function MsgSendUnsentMsgs(){  // if offline, prompt for sendUnsentMessages  if(CheckOnline()) {    SendUnsentMessages();      }  else {    var option = PromptSendMessagesOffline();    if(option == 0) {      if (!gOfflineManager)         GetOfflineMgrService();      gOfflineManager.goOnline(false /* sendUnsentMessages */,                                false /* playbackOfflineImapOperations */,                                msgWindow);      SendUnsentMessages();    }  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/112eb3c61f3751959441fb43cbe46e8ef204db63/mailWindowOverlay.js/clean/mail/base/content/mailWindowOverlay.js