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

on chefMessageHandler (from, type, body, subject, thread, connection) {
		<<5/13/02; 11:09:31 PM by JB
			<<Changelog created.
	<<A sample message handler. To install it, "run" the script. This works because of what I wrote below the script; it is not a feature of handlers. This will spit back everything you write to it, with a small modification. You should do this through normally, but this shows how to do it in Jabber directly, which you may want to do if you want to affect things (like subject or threading) out of the scope of
		<<The "chef" script in this subtable does the real work... ;-)
	subject =parentOf(this^)^.chef(subject, false);
	body = parentOf(this^)^.chef(body);, body, subject: subject, type: type, thread:thread, connection: connection )}; ( "message", this )

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.