rem: var resource = RDF.GetResource(uri); var message = resource.QueryInterface(Components.interfaces.nsIMessage); if (message) setTitleFromFolder(message.msgFolder, message.mimef2DecodedSubject); 
add: var resource = RDF.GetResource(uri); var message = resource.QueryInterface(Components.interfaces.nsIMessage); if (message) setTitleFromFolder(message.msgFolder, message.mimef2DecodedSubject); 
context: function LoadMessageByUri(uri){      dump("XXX LoadMessageByUri " + uri + " vs " + gCurrentDisplayedMessage + "\n");	if(uri != gCurrentDisplayedMessage)	{        dump("fix this, get the nsIMsgDBHdr and the nsIMsgFolder from the uri...\n");/*		var resource = RDF.GetResource(uri);		var message = resource.QueryInterface(Components.interfaces.nsIMessage); 		if (message)			setTitleFromFolder(message.msgFolder, message.mimef2DecodedSubject);		var nsIMsgFolder = Components.interfaces.nsIMsgFolder;		if (message.msgFolder.server.downloadOnBiff)			message.msgFolder.biffState = nsIMsgFolder.nsMsgBiffState_NoMail;*/		gCurrentDisplayedMessage = uri;		gHaveLoadedMessage = true;		OpenURL(uri);	}}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/0b2dd2b2d2fd037df917e07645fa019a963332a5/commandglue.js/clean/mailnews/base/resources/content/commandglue.js