add:  var property = RDF.GetResource('http: var result = tree.database.GetTarget(messageResource, property , true); result = result.QueryInterface(Components.interfaces.nsIRDFLiteral); var flagged = (result.Value == "flagged")  
context: function ToggleMessageFlagged(treeItem){	var tree = GetThreadTree();	var flaggedValue = treeItem.getAttribute('Flagged');	var flagged = (flaggedValue =="flagged");	var messageResource = RDF.GetResource(treeItem.getAttribute('id'));	var message = messageResource.QueryInterface(Components.interfaces.nsIMessage);	var messageArray = new Array(1);	messageArray[0] = message;	MarkMessagesFlagged(tree.database, messageArray, !flagged);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/f4f6b7732ff85e449e35ee887304f59c8370dbef/commandglue.js/buggy/mailnews/base/resources/content/commandglue.js