rem: var compositeDS = GetCompositeDataSource("MarkMessageRead"); var property = RDF.GetResource('http:  var areMessagesRead;  if(numMessages == 0) areMessagesRead = false; else { areMessagesRead = true; for(var i = 0; i < numMessages; i++) { var result = compositeDS.GetTarget(messages[i], property, true); result = result.QueryInterface(Components.interfaces.nsIRDFLiteral); if(result.Value == "true") { areMessagesRead = false; break; } } } 
add: areMessagesRead = SelectedMessagesAreRead(); 
context: function InitMarkReadMenuItem(){	var messages = GetSelectedMessages();	var numMessages = messages.length;	var compositeDS = GetCompositeDataSource("MarkMessageRead");	var property = RDF.GetResource('http://home.netscape.com/NC-rdf#IsUnread');	var areMessagesRead;	if(numMessages == 0)		areMessagesRead = false;	else	{		areMessagesRead = true;		for(var i = 0; i < numMessages; i++)		{			var result = compositeDS.GetTarget(messages[i], property, true);			result = result.QueryInterface(Components.interfaces.nsIRDFLiteral);			if(result.Value == "true")			{				areMessagesRead = false;				break;			}		}	}	var markReadMenuItem = document.getElementById("markReadMenuItem");	if(markReadMenuItem)		markReadMenuItem.setAttribute("checked", areMessagesRead);}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/d63000ffb06f1c74b5d3215477135715d57355d7/mailWindowOverlay.js/clean/mailnews/base/resources/content/mailWindowOverlay.js