rem: messenger.MarkMessageFlagged(tree.database, treeItem, !flagged); 
add: messenger.MarkMessageFlagged(tree.database, treeItem.resource, !flagged); 
context: function ToggleMessageFlagged(treeItem){	var tree = GetThreadTree();	var flaggedValue = treeItem.getAttribute('Flagged');	dump('flaggedValue is ' + flaggedValue);	dump('\n');	var flagged = (flaggedValue =="flagged");	messenger.MarkMessageFlagged(tree.database, treeItem, !flagged);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/1038bd68e3102cdd1cf7c3948945302647de6281/commandglue.js/clean/mailnews/base/resources/content/commandglue.js