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

scripting2Suite.server.mapDomainToStory

on mapDomainToStory (adrstory) {
	<<Changes
		<<6/29/10; 9:37:46 AM by DW
			<<Created. 
	if defined (adrstory^.domain) {
		local (adrdata = scripting2suite.init ());
		local (s = adrstory^.domain);
		if string.lower (s) beginswith "http://" {
			s = string.delete (s, 1, 7)};
		if s endswith "/" {
			s = string.delete (s, sizeof (s), 1)};
		adrdata^.server.domains.[s] = string.popfilefromaddress (adrstory);
		config.mainresponder.domains.[s] = @scripting2Suite.server.domainMapper}}



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.