rem: var db = GetFolderDatasource(); var folderResource = msgFolder.QueryInterface(Components.interfaces.nsIRDFResource); if(folderResource) { var property = RDF.GetResource('http: if (!property) return false; var result = db.GetTarget(folderResource, property , true); if (!result) return false; result = result.QueryInterface(Components.interfaces.nsIRDFLiteral); if (!result) return false;     var count = specialFolderNames.length; var i; for (i = 0; i < count; i++) { if(result.Value == specialFolderNames[i]) return true; } }  return false; 
add: if ((msgFolder.flags & flags) == 0) { return false; } else { return true; } 
context: function IsSpecialFolder(msgFolder, specialFolderNames){	var db = GetFolderDatasource();	var folderResource = msgFolder.QueryInterface(Components.interfaces.nsIRDFResource);	if(folderResource)	{		var property =			RDF.GetResource('http://home.netscape.com/NC-rdf#SpecialFolder');		if (!property) return false;		var result = db.GetTarget(folderResource, property , true);		if (!result) return false;		result = result.QueryInterface(Components.interfaces.nsIRDFLiteral);		if (!result) return false;		//dump("We are looking for " + specialFolderNames + "\n");		//dump("special folder name = " + result.Value + "\n");                var count = specialFolderNames.length;        var i;        for (i = 0; i < count; i++) {            if(result.Value == specialFolderNames[i])                return true;        }	}	return false;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/977b5ce7381ad6f7ce54870d36ed14c25f11bc37/commandglue.js/clean/mailnews/base/resources/content/commandglue.js