X-Andrew-Authenticated-As: 101;nsb.fv.com;Nathaniel Borenstein
Received: from Messages.8.5.N.CUILIB.3.45.SNAP.NOT.LINKED.nsb.fv.com.sun4.41
          via MS.5.6.nsb.fv.com.sun4_41;
          Sun, 14 Aug 1994 10:46:52 -0400 (EDT)
Message-ID: <wiHWtQz0Eyt5Q518Y=@nsb.fv.com>
Date: Sun, 14 Aug 1994 10:46:52 -0400 (EDT)
From: Nathaniel Borenstein <nsb@nsb.fv.com>
To: safe-tcl@CS.UTK.EDU, Hal <hfinney@shell.portal.com>
Subject: Re: Delivery-time activation
In-Reply-To: <199408130350.UAA07873@jobe.shell.portal.com>
References: <199408130350.UAA07873@jobe.shell.portal.com>

It's true that very little work has gone on in this direction. 
Basically, all you need is to have your mail forwarded to a program that
extracts any safe-tcl parts and runs them through "swish -nointerface
-safe -messaging".  The following very basic example works with sendmail
-- if you set up "stest" as an alias: 

    stest: "|/home/whatever/bin/deliverytime" 

where the "deliverytime" program is simply: 

    #/bin/csh -f 
    /usr/bin/sed -e '1,/^$/d' > /tmp/dt.$$ 
    /home/util/safe-tcl/swish -nointerface -safe -messaging -f /tmp/dt.$$ 
    /bin/rm /tmp/dt.$$ 

That will do the job in the case where the content-type happens to be
application/safe-tcl.  Obviously, more sophisticated software is needed
to actually do anything useful with delivery-time applications, but I
don't know anyone who is working on it....  -- Nathaniel 
 
