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: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/24a4249fdcadc691294384dcfdee50a181d8b030/mailWindowOverlay.js/clean/mailnews/base/resources/content/mailWindowOverlay.js