From owner-freebsd-questions@FreeBSD.ORG Wed Nov 2 20:14:49 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 47EE316A41F; Wed, 2 Nov 2005 20:14:49 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.95]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8741543D45; Wed, 2 Nov 2005 20:14:47 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from flame.pc (aris.bedc.ondsl.gr [62.103.39.226]) by kane.otenet.gr (8.13.4/8.13.4/Debian-1) with SMTP id jA2KEiGW026937; Wed, 2 Nov 2005 22:14:45 +0200 Received: from flame.pc (flame [127.0.0.1]) by flame.pc (8.13.4/8.13.4) with ESMTP id jA2KEeDL044610; Wed, 2 Nov 2005 22:14:40 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by flame.pc (8.13.4/8.13.4/Submit) id jA2KEeC2044598; Wed, 2 Nov 2005 22:14:40 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Wed, 2 Nov 2005 22:14:40 +0200 From: Giorgos Keramidas To: Gary Kline Message-ID: <20051102201439.GA37256@flame.pc> References: <200510312218.13261.freebsd01@dgmm.net> <20051101011146.GA14135@thought.org> <20051101013050.GA10120@flame.pc> <20051101055104.GA15533@thought.org> <20051101121414.GB1051@flame.pc> <20051101185922.GB67660@thought.org> <2011CB42-5C96-4315-AD73-A17B39589CBF@secure-computing.net> <20051101222051.GA24702@thought.org> <20051102093907.GT29387@submonkey.net> <20051102200757.GA67144@thought.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051102200757.GA67144@thought.org> Cc: Eric F Crist , freebsd-www@freebsd.org, Ceri Davies , freebsd-questions@freebsd.org Subject: Re: The best scripts ever (trick or treat) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Nov 2005 20:14:49 -0000 On 2005-11-02 12:07, Gary Kline wrote: > On Wed, Nov 02, 2005 at 09:39:07AM +0000, Ceri Davies wrote: > > On Tue, Nov 01, 2005 at 02:20:51PM -0800, Gary Kline wrote: > > > > > Let's say we request people submit only their sh script > > > (to start). What would the format need to be so that > > > a script could parse email and auto-HTML the script?' > > > > #!/bin/sh -- > > portinstall squirrelmail > > > > Did I win a biscuit? :) > > > > Ceri > > > Would some gold stars do? :) > > evolution take ASCII and iso.8859-15 text and turns it into > HTML too (I think; don't *quote me*). I have a C prog that > I've been using privingly for 11 years that does this and > more, but what what I'm thinkg of is a script that would > take a posted script and using the KEYWORDS of, say: > > "CATEORY: foo > "FUNCTION: it_does_this > "OPTIONS: can_do_this_or_that" > > BEGINSCRIPT > !#/bin/sh > echo "hello world" > ENDSCRIPT What happens when the script itself contains a line that starts with one of the special "markup" lines?