REBOL [ Title: "Mail Summary" Date: 4-June-1999 Purpose: { Creates an HTML file that summarizes the email in your inbox. } ] html: make string! 10000 emit: func [data] [append html reduce data] emit [ <html><body> <H2>"Mailbox Summary for " now</H2> <p><table> ] inbox: read pop://user:[email protected] foreach message inbox [ mail: import-email message emit [ <tr> <td> first mail/from </td> <td> mail/date </td> <td> mail/subject </td> <td> length? mail/content </td> </tr> ] ] emit [</table><p></body></html>] write %inbox.html html ; the % indicates a filename
Script Junkie | REBOL Bots
Over the past two decades, my search for the perfect scripting language led me to work with companies such as HP, Amiga, and Apple. In that time, I investigated more than 50 different languages, from Ada to C, from Pascal to Lisp. I wanted a language that was very simple and readable with almost no syntax, yet very flexible with a wide degree of expressive freedom.Related Reading
More Insights
INFO-LINK
To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy. | |