Monday, November 08, 2010 at 12:04 AM.

system.verbs.builtins.radio.aggregator.mailAggregator.storyArrivedCallback

on storyArrivedCallback (adrservice, adrItem) {
	<<Changes
		<<10/10/02; 11:23:17 AM by DW
			<<Created.
	if user.radio.prefs.mailAggregator.enabled {
		local (adrtable = @system.temp.radio.mailAggregator.[nameof (adrservice^)]);
		if defined (adrtable^) {
			adrtable^.ctnewstories++}
		else {
			new (tabletype, adrtable);
			adrtable^.ctnewstories = 1;
			new (tabletype, @adrtable^.items);
			adrtable^.title = radio.string.decodeEntities (adrservice^.compilation.channeltitle, false, false)};
		adrtable^.items.[string.padwithzeros (sizeof (adrtable^.items) + 1, 5)] = adritem^};
	return (true)};
bundle { //test code
	storyArrivedCallback (@aggregatorData.services.["http://www.wired.com/news_drop/netcenter/netcenter.rdf"], @aggregatorData.services.["http://www.wired.com/news_drop/netcenter/netcenter.rdf"].compilation.items.["00006"])}



This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.