rem: if (markFlagged) { gDBView.doCommand(nsMsgViewCommandType.flagMessages); } else { gDBView.doCommand(nsMsgViewCommandType.unflagMessages); } 
add: gDBView.doCommand(markFlagged ? nsMsgViewCommandType.flagMessages : nsMsgViewCommandType.unflagMessages); 
context: function MarkSelectedMessagesFlagged(markFlagged){    if (markFlagged) {        gDBView.doCommand(nsMsgViewCommandType.flagMessages);    }    else {        gDBView.doCommand(nsMsgViewCommandType.unflagMessages);    }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/91c00f9cca3ccfd7e300b9ad317840efa5e36c01/mailCommands.js/buggy/mailnews/base/resources/content/mailCommands.js