tm 7.80.
[elisp/tm.git] / tm-body-eng.ol
1 [[R
2 \title{tm-body manual (English Version)}
3 \author{Morioka Tomohiko}
4 \date{1994/7/22}
5 \maketitle
6 ]]R
7
8 * Install
9
10   Installing method is written in README-eng.ol. Please read it and
11 install.
12
13 ** tiny-mime.el
14
15   Please copy tiny-mime.el to your Emacs lisp directory.
16
17
18 ** tm-body
19
20 *** *.el
21
22   Please copy tm-body.el, tl-list.el and tl-header.el to your Emacs
23 lisp directory.
24
25 *** methods
26
27   Please edit methods for your environment, and copy to your
28 executable directory.
29
30
31 *** decode-b.c
32
33   Please compile decode-b.c by gcc or another ANSI C.
34
35 [[E
36         % gcc -O decode-b.c -o decode-b
37 ]]E
38
39   And please copy decode-b to your executable directory.
40
41   However, if you have another decoder (e.g. mmencode in metamail),
42 you can replace decode-b (e.g. You can replace `decode-b <' by
43 `mmencode -b -u' in methods).
44
45
46 * Customize
47
48   You can designate methods of Content-Types if you set variable
49 `mime/content-decoding-method-alist' in .emacs.
50
51 [[E
52 ----------------------------------------------------------------------
53 (setq mime/content-decoding-method-alist
54   '(("audio/basic" . "tm-au")
55     ("image/gif"   . "tm-image")
56     ("image/jpeg"  . "tm-image")
57     ("image/x-pic" . "tm-image")
58     ("video/mpeg"  . "tm-mpeg")
59     ("application/octet-stream" . "tm-file")
60     ("text/x-latex" . "tm-latex")
61     ))
62 ----------------------------------------------------------------------
63 ]]E
64
65   Each methods are shell scripts. Arguments of methods are written in
66 following table.
67
68 ----------------------------------------------------------------------------
69 |argument|                           value                                 |
70 ============================================================================
71 |   $1   |temporary file name of encoded content                           |
72 |   $2   |Content-Type (type/sub-type)                                     |
73 |   $3   |encoding {7bit / quoted-printable / base64 / 8bit / binary / ...}|
74 |   $4   |decoding-mode {play / extract / print}                           |
75 |   $5   |original file name of content                                    |
76 ----------------------------------------------------------------------------
77
78   Each Content-Types are decoded by methods. Exceptionally,
79 message/partial is decoded by tm-body.el.
80
81
82 * Limitation or bug
83
84   In this version, message/external-body is not supported.
85
86   Attached base64 decoder `decode-b.c' is not good program, so if it
87 can run normally, please correct it. But It is easy because decode-b.c 
88 is too small, so please...(^_^;
89
90   Or you can use mmencode attached in metamail as decoder.
91
92   In this package, there is no Quoted-Printable decoder, so please use 
93 mmencode.