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


on mapDomainToStory (adrstory) {
		<<6/29/10; 9:37:46 AM by DW
	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^[s] = string.popfilefromaddress (adrstory);[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.