context: function OnLoadMessageWindow(){	HideMenus();	CreateMailWindowGlobals();	CreateMessageWindowGlobals();	verifyAccounts();	InitMsgWindow();	messenger.SetWindow(window, msgWindow);	InitializeDataSources();	// FIX ME - later we will be able to use onload from the overlay	OnLoadMsgHeaderPane();  try {    mailSession.AddFolderListener(folderListener);	} catch (ex) {    dump("Error adding to session\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];      	}	  // extract the sort type, the sort order,   var sortType;  var sortOrder;  var viewFlags;  var viewType;  if (originalView)  {    viewType = originalView.viewType;    viewFlags = originalView.viewFlags;    sortType = originalView.sortType;    sortOrder = originalView.sortOrder;  }    var msgFolder = GetLoadedMsgFolder();  CreateBareDBView(msgFolder,viewType, viewFlags, sortType, sortOrder); // create a db view for   if (gCurrentMessageUri) {    SetUpToolbarButtons(gCurrentMessageUri);  }  else if (gCurrentFolderUri) {    SetUpToolbarButtons(gCurrentFolderUri);  }      setTimeout("var msgKey = extractMsgKeyFromURI(gCurrentMessageUri); gDBView.loadMessageByMsgKey(msgKey); gNextMessageViewIndexAfterDelete = gDBView.firstSelected;", 0);  SetupCommandUpdateHandlers();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/0d3611ded1fc3e6e209579921fb41cfb235996d2/messageWindow.js/clean/mailnews/base/resources/content/messageWindow.js