add: if (gCurrentMessageUri) { SetUpToolbarButtons(gCurrentMessageUri); } else if (gCurrentFolderUri) { SetUpToolbarButtons(gCurrentFolderUri); }  
context: function OnLoadMessageWindow(){	HideMenus();	HideToolbarButtons();	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");    }	if(window.arguments && window.arguments.length == 2)	{		if(window.arguments[0])		{			gCurrentMessageUri = window.arguments[0];		}		else		{			gCurrentMessageUri = null;		}		if(window.arguments[1])		{			gCurrentFolderUri = window.arguments[1];		}		else		{			gCurrentFolderUri = null;		}	}	  setTimeout("OpenURL(gCurrentMessageUri);", 0);  SetupCommandUpdateHandlers();}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/ecd6c8cc82823af0d9b26cffd29169fc39577ebd/messageWindow.js/buggy/mailnews/base/resources/content/messageWindow.js