rem: messenger.MarkMessageRead(tree.database, treeItem.resource, unread); 
add:  var messageResource = RDF.GetResource(treeItem.getAttribute('id')); var message = messageResource.QueryInterface(Components.interfaces.nsIMessage); var messageArray = new Array(1); messageArray[0] = message;  MarkMessagesRead(tree.database, messageArray, unread); 
context: function ToggleMessageRead(treeItem){	var tree = GetThreadTree();	var isUnread = treeItem.getAttribute('IsUnread');	var unread = (isUnread == "true");	messenger.MarkMessageRead(tree.database, treeItem.resource, unread);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/1e6f1a5f0746d8d8e68b372ddba5e3fdb86ba1a5/commandglue.js/clean/mailnews/base/resources/content/commandglue.js