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


if user.prefs.mailhost == "" { //hasn't been set yet
	if not dialog.ask ("Enter the name of your mail host:", @user.prefs.mailhost) {

local (otheruser);
if op.attributes.getone ("email", @otheruser) {
	local (t); new (tableType, @t);
	t.subject = "Radio UserLand email message";
	local (adrtype = parentOf (parentOf (this^)^));
	local (adrdialogs = @adrtype^.data.dialogs);
	if system.environment.isMac { (@adrdialogs^.cards.emailUser)}
	else { // HTML dialog on Windows (@adrdialogs^.wizard, 4, @t)};
	if defined (t.userClickedOk) {
		tcp.sendMail (otheruser, t.subject, t.text,};
	return (true)}

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.