rem:      if (gCurrentlyDisplayedMessage == nsMsgViewIndex_None && gDBView) gCurrentlyDisplayedMessage = gDBView.currentlyDisplayedMessage; 
context: function HandleCompactCompleted(folder){  if (folder)  {    var resource = folder.QueryInterface(Components.interfaces.nsIRDFResource);    if (resource)    {      var uri = resource.Value;      var msgFolder = msgWindow.openFolder;      if (msgFolder && uri == msgFolder.URI)      {        var msgdb = msgFolder.getMsgDatabase(msgWindow);        if (msgdb)        {          var dbFolderInfo = msgdb.dBFolderInfo;          sortType = dbFolderInfo.sortType;          sortOrder = dbFolderInfo.sortOrder;          viewFlags = dbFolderInfo.viewFlags;          viewType = dbFolderInfo.viewType;          dbFolderInfo = null;        }                // before we reroot the folder, save off the currently displayed message        // so we can restore selection after re-rooting. For the manual compaction case,        // we've already saved this value off before we cleared the view and the thread pane.        // For the automatic folder compaction case, gDBView is still valid and we haven't         // saved off gCurrentlyDisplayedMessage yet.        if (gCurrentlyDisplayedMessage == nsMsgViewIndex_None && gDBView)          gCurrentlyDisplayedMessage = gDBView.currentlyDisplayedMessage;        RerootFolder(uri, msgFolder, viewType, viewFlags, sortType, sortOrder);        LoadCurrentlyDisplayedMessage();      }    }  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8395/ab425b29a4d8a8c14014245808930b408059de17/msgMail3PaneWindow.js/buggy/mail/base/content/msgMail3PaneWindow.js