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

system.verbs.builtins.radio.aggregator.mailAggregator.init

<<Changes
	<<11/5/02; 1:57:48 PM by DW
		<<Convert the templates to strings as they are copied. 
bundle { //init data
	if not defined (user.radio.prefs.mailAggregator) {
		new (tabletype, @user.radio.prefs.mailAggregator)};
	if not defined (user.radio.prefs.mailAggregator.enabled) {
		user.radio.prefs.mailAggregator.enabled = false};
	if not defined (user.radio.prefs.mailAggregator.toMailAddress) {
		user.radio.prefs.mailAggregator.toMailAddress = user.prefs.mailAddress};
	if not defined (user.radio.prefs.mailAggregator.fromMailAddress) {
		user.radio.prefs.mailAggregator.fromMailAddress = user.prefs.mailAddress};
	if not defined (user.radio.prefs.mailAggregator.mailSubject) {
		user.radio.prefs.mailAggregator.mailSubject = "Headlines from Radio UserLand"};
	if not defined (user.radio.prefs.mailAggregator.template) {
		user.radio.prefs.mailAggregator.template = string (radio.aggregator.mailAggregator.data.virginTemplates.template)};
	if not defined (user.radio.prefs.mailAggregator.templateFeedTitle) {
		user.radio.prefs.mailAggregator.templateFeedTitle = string (radio.aggregator.mailAggregator.data.virginTemplates.templateFeedTitle)};
	if not defined (user.radio.prefs.mailAggregator.templateItem) {
		user.radio.prefs.mailAggregator.templateItem = string (radio.aggregator.mailAggregator.data.virginTemplates.templateItem)}};
if user.radio.prefs.mailAggregator.enabled {
	bundle { //init callbacks
		local (adraggregatordata = xml.aggregator.init ());
		if not defined (adraggregatordata^.callbacks.preScan.mailAggregator) {
			adraggregatordata^.callbacks.preScan.mailAggregator = @radio.aggregator.mailAggregator.preScanCallback};
		if not defined (adraggregatordata^.callbacks.postScan.mailAggregator) {
			adraggregatordata^.callbacks.postScan.mailAggregator = @radio.aggregator.mailAggregator.postScanCallback};
		if not defined (adraggregatordata^.callbacks.storyArrived.mailAggregator) {
			adraggregatordata^.callbacks.storyArrived.mailAggregator = @radio.aggregator.mailAggregator.storyArrivedCallback}}}



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.