Monday, November 08, 2010 at 12:03 AM.
system.verbs.builtins.html.oldstuff.mailToHTML
on mailToHTML (sender, recipient, subject, sent, text) {
local (htmltext = "");
on add (s) {
htmltext = htmltext + s + cr};
add ("#title \"" + subject + "\"");
<<add ("#template \"" + sitename + "\"")
<<add ("#ftpSite \"" + sitename + "\"")
add ("#postTime \"" + sent + "\"");
add ("<table border=0>\r");
add (html.getTableLine ({"<b>Sent:</b>", sent}));
add (html.getTableLine ({"<b>From: </b>", sender}));
<<add (html.getTableLine ({"<b>To:</b>", recipient}))
<<add (html.getTableLine ({"<b>Re:</b>", subject}))
add ("</table>\r<p>");
add (text);
return (htmltext)}
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.