\documentstyle[a4j]{jarticle}
\setcounter{secnumdepth}{6}
\setcounter{tocdepth}{6}
\topsep=0.1cm
\parsep=0.1cm
\itemsep=0.0cm
\begin{document}
\title{tm-body manual (English Version)}
\author{Morioka Tomohiko}
\date{1994/7/22}
\maketitle
\medskip

\section{Install}
\medskip
{\baselineskip=10pt
\begin{verbatim}
  Installing method is written in README-eng.ol. Please read it and
install.
\end{verbatim}}
\medskip

\subsection{tiny-mime.el}
\medskip
\par
Please copy tiny-mime.el to your Emacs lisp directory.
\medskip
\medskip

\subsection{tm-body}
\medskip

\subsubsection{$*$.el}
\medskip
\par
Please copy tm-body.el, tl-list.el and tl-header.el to your Emacs
lisp directory.
\medskip

\subsubsection{methods}
\medskip
\par
Please edit methods for your environment, and copy to your
executable directory.
\medskip
\medskip

\subsubsection{decode-b.c}
\medskip
\par
Please compile decode-b.c by gcc or another ANSI C.
\medskip
{\baselineskip=10pt
\begin{verbatim}
        % gcc -O decode-b.c -o decode-b
\end{verbatim}}
\medskip
\par
And please copy decode-b to your executable directory.
\medskip
\par
However, if you have another decoder (e.g. mmencode in metamail),
you can replace decode-b (e.g. You can replace `decode-b $<$' by
`mmencode -b -u' in methods).
\medskip
\medskip

\section{Customize}
\medskip
\par
You can designate methods of Content-Types if you set variable
`mime/content-decoding-method-alist' in .emacs.
\medskip
{\baselineskip=10pt
\begin{verbatim}
----------------------------------------------------------------------
(setq mime/content-decoding-method-alist
  '(("audio/basic" . "tm-au")
    ("image/gif"   . "tm-image")
    ("image/jpeg"  . "tm-image")
    ("image/x-pic" . "tm-image")
    ("video/mpeg"  . "tm-mpeg")
    ("application/octet-stream" . "tm-file")
    ("text/x-latex" . "tm-latex")
    ))
----------------------------------------------------------------------
\end{verbatim}}
\medskip
\par
Each methods are shell scripts. Arguments of methods are written in
following table.
\medskip
~\\
\begin{center}
\begin{tabular}{|c|l|}
\hline
argument & \multicolumn{1}{|c|}{                           value                                 }\\
\hline\hline
   \$1    & temporary file name of encoded content                           \\
   \$2    & Content-Type (type/sub-type)                                     \\
   \$3    & encoding \{7bit / quoted-printable / base64 / 8bit / binary / ...\}\\
   \$4    & decoding-mode \{play / extract / print\}                           \\
   \$5    & original file name of content                                    \\
\hline
\end{tabular}\\
\end{center}
\medskip
\par
Each Content-Types are decoded by methods. Exceptionally,
message/partial is decoded by tm-body.el.
\medskip
\medskip

\section{Limitation or bug}
\medskip
\par
In this version, message/external-body is not supported.
\medskip
\par
Attached base64 decoder `decode-b.c' is not good program, so if it
can run normally, please correct it. But It is easy because decode-b.c
is too small, so please...(\verb+^+\_\verb+^+;
\medskip
\par
Or you can use mmencode attached in metamail as decoder.
\medskip
\par
In this package, there is no Quoted-Printable decoder, so please use
mmencode.
\end{document}
