[[R \title{tm-body manual (English Version)} \author{Morioka Tomohiko} \date{1994/7/22} \maketitle ]]R * Install Installing method is written in README-eng.ol. Please read it and install. ** tiny-mime.el Please copy tiny-mime.el to your Emacs lisp directory. ** tm-body *** *.el Please copy tm-body.el, tl-list.el and tl-header.el to your Emacs lisp directory. *** methods Please edit methods for your environment, and copy to your executable directory. *** decode-b.c Please compile decode-b.c by gcc or another ANSI C. [[E % gcc -O decode-b.c -o decode-b ]]E And please copy decode-b to your executable directory. 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). * Customize You can designate methods of Content-Types if you set variable `mime/content-decoding-method-alist' in .emacs. [[E ---------------------------------------------------------------------- (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") )) ---------------------------------------------------------------------- ]]E Each methods are shell scripts. Arguments of methods are written in following table. ---------------------------------------------------------------------------- |argument| value | ============================================================================ | $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 | ---------------------------------------------------------------------------- Each Content-Types are decoded by methods. Exceptionally, message/partial is decoded by tm-body.el. * Limitation or bug In this version, message/external-body is not supported. 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...(^_^; Or you can use mmencode attached in metamail as decoder. In this package, there is no Quoted-Printable decoder, so please use mmencode.