: convert URLs into anchors in mbox file, also delete Received: lines
wwwserver=http://www.csci.csusb.edu/
m=${1:-$HOME/bibliographies}
out=$m.html
other=${2:-se.html#Bibliographies}
otherdir=${3:-dick}
otherurl=$wwwserver$otherdir/$other
export m otherurl
( echo "<head><title>"$m" "`date`"</title></head><body>"
[ -r standard.include.html ] && cat standard.include.html
echo 'Also see <a href="'$otherurl'"> '$otherurl'</A>.'
echo "<hr><pre>"
sed <$m '/^Received: /d
/^Subject: \(.*\)$/s//<\/pre><h3>Subject: \1<\/h3><pre>/
/<[aA] [hH][rR][eE][fF]/!s/[a-z]*:\/\/[-~+_.a-zA-Z0-9/#?]*/<a href="&">&<\/A>/
#'
echo "</pre><hr>"
echo "This is one of Doc Dick's <a href=\"http://www.csci.csusb.edu/doc/\">docs</A> in the <a href=\"http://www.csci.csusb.edu/dick/me.html\">House of ASCII</A>."
echo "</body>"
) >$out
