MIME mailcap entry for HTML, using TkWWW

Martin Hamilton <M.T.Hamilton@lut.ac.uk>
Date: Tue, 29 Jun 1993 11:22:11 +0100 (BST)
From: Martin Hamilton <M.T.Hamilton@lut.ac.uk>
Subject: MIME mailcap entry for HTML, using TkWWW
To: www-talk@nxoc01.cern.ch
Message-id: <Pine.3.07.9306291110.F19312-a100000@avarice>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: M.T.Hamilton@lut.ac.uk
I don't recall having seen anything like this, so here goes...

  text/x-html; xmosaic %s
  text/x-html; xmosaic %s; compose=htmlcompose %s;\
     description="HTML Hypertext generated by tkWWW 0.8"

Where htmlcompose is... 


  WWW_HOME=$1.html export WWW_HOME

  cat >$WWW_HOME <<!!EOF!!
  <title>HTML generated for `whoami`@`hostname`.`domainname` by TkWWW</title>
  <h1>Type your message in here!</h1>

  tkWWW -wwwnoinfo
  mv $1.html $1

The only drawback with using tkWWW this way is that you have
to go through the "generate source" & "save source" dialogs
to get your HTML exported.


One way to get around this would be to have a command line option 
(say -wwwsource) that told it just to act as an HTML editor, reading
in $1 and dumping the exported HTML automatically on exiting.


PS An "insert file" option would be quite nice too!