rem:  setTimeout("var msgKey = extractMsgKeyFromURI(gCurrentMessageUri); gDBView.loadMessageByMsgKey(msgKey); gNextMessageViewIndexAfterDelete = gDBView.msgToSelectAfterDelete;", 0);  
add:  setTimeout("var msgKey = extractMsgKeyFromURI(gCurrentMessageUri); gDBView.loadMessageByMsgKey(msgKey); gNextMessageViewIndexAfterDelete = gDBView.msgToSelectAfterDelete; UpdateStandAloneMessageCounts();", 0);  
context: function OnLoadMessageWindow(){	HideMenus();  	AddMailOfflineObserver();	CreateMailWindowGlobals();	CreateMessageWindowGlobals();	verifyAccounts(null);	InitMsgWindow();	messenger.SetWindow(window, msgWindow);	InitializeDataSources();	// FIX ME - later we will be able to use onload from the overlay	OnLoadMsgHeaderPane();  try {    var nsIFolderListener = Components.interfaces.nsIFolderListener;    var notifyFlags = nsIFolderListener.removed | nsIFolderListener.event;    mailSession.AddFolderListener(folderListener, notifyFlags);  } catch (ex) {    dump("Error adding to session: " +ex + "\n");  }  var originalView = null;	if(window.arguments)	{		if(window.arguments[0])		{			gCurrentMessageUri = window.arguments[0];		}		else		{			gCurrentMessageUri = null;		}		if(window.arguments[1])		{			gCurrentFolderUri = window.arguments[1];		}		else		{			gCurrentFolderUri = null;		}    if (window.arguments[2])      originalView = window.arguments[2];      	}	  CreateView(originalView)     setTimeout("var msgKey = extractMsgKeyFromURI(gCurrentMessageUri); gDBView.loadMessageByMsgKey(msgKey); gNextMessageViewIndexAfterDelete = gDBView.msgToSelectAfterDelete;", 0);  SetupCommandUpdateHandlers();  var messagePaneFrame = top.frames['messagepane'];  if(messagePaneFrame)	messagePaneFrame.focus();}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/a0cf394eea7a242c9992da625c92fb694a50a4bf/messageWindow.js/buggy/mailnews/base/resources/content/messageWindow.js