rem: InitMarkReadItem("markReadMenuItem"); InitMarkReadItem("markReadToolbarItem"); InitMarkFlaggedItem("markFlaggedMenuItem"); InitMarkFlaggedItem("markFlaggedToolbarItem"); document.commandDispatcher.updateCommands('create-menu-mark'); 
add: var areMessagesRead = SelectedMessagesAreRead(); var readItem = document.getElementById("cmd_markAsRead"); if(readItem) readItem.setAttribute("checked", areMessagesRead);  var areMessagesFlagged = SelectedMessagesAreFlagged(); var flaggedItem = document.getElementById("cmd_markAsFlagged"); if(flaggedItem) flaggedItem.setAttribute("checked", areMessagesFlagged);  document.commandDispatcher.updateCommands('create-menu-mark'); 
context: function InitMessageMark(){    InitMarkReadItem("markReadMenuItem");    InitMarkReadItem("markReadToolbarItem");    InitMarkFlaggedItem("markFlaggedMenuItem");    InitMarkFlaggedItem("markFlaggedToolbarItem");    document.commandDispatcher.updateCommands('create-menu-mark');}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/ede14b25268c1590cf6f44b25129f95277ca73d3/mailWindowOverlay.js/buggy/mailnews/base/resources/content/mailWindowOverlay.js