rem: RemoveMailOfflineObserver(); 
add: MailOfflineMgr.uninit(); 
context: function OnMailWindowUnload(){  RemoveMailOfflineObserver();  ClearPendingReadTimer();  var searchSession = GetSearchSession();  if (searchSession)  {    removeGlobalListeners();    if (gPreQuickSearchView)     //close the cached pre quick search view      gPreQuickSearchView.close();  }    var dbview = GetDBView();  if (dbview) {    dbview.close();   }  var mailSession = Components.classes[mailSessionContractID].getService();  if(mailSession)  {    mailSession = mailSession.QueryInterface(Components.interfaces.nsIMsgMailSession);    if(mailSession)    {      mailSession.RemoveFolderListener(folderListener);    }  }  mailSession.RemoveMsgWindow(msgWindow);  messenger.SetWindow(null, null);  var msgDS;  var viewDataSources = [accountManagerDataSource, folderDataSource,                         unreadFolderDataSource, favoriteFoldersDataSource,                        recentFoldersDataSource];                          for (index in viewDataSources)  {    msgDS = viewDataSources[index].QueryInterface(Components.interfaces.nsIMsgRDFDataSource);    msgDS.window = null;  }  msgWindow.closeWindow();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d4a47843afb11fb60fd06b3678ecd6c427c1bbf8/mailWindow.js/clean/mail/base/content/mailWindow.js