1 [README for FLIM (English Version)]
6 FLIM is a library to provide basic features about message
7 representation or encoding. It consists of following
10 std11.el --- STD 11 (RFC 822) parser and utility
12 mime.el --- MIME library
14 mime-def.el --- Definitions about MIME format
16 mime-parse.el --- MIME parser
18 mel.el --- MIME encoder/decoder
19 mel-dl.el --- base64 (b-encoding) encoder/decoder
20 (for Emacs 20 with dynamic loading support)
21 mel-b.el --- base64 (b-encoding) encoder/decoder
23 mel-q.el --- quoted-printable and q-encoding encoder/decoder
24 mel-u.el --- unofficial module for uuencode
25 mel-g.el --- unofficial module for gzip64
27 eword-decode.el --- encoded-word decoder
28 eword-encode.el --- encoded-word encoder
30 mailcap.el --- mailcap parser and utility
36 (0) before installing it, please install APEL package. APEL package
39 ftp://ftp.jaist.ac.jp/pub/GNU/elisp/apel/
41 (1-a) run in expanded place
43 If you don't want to install other directories, please do only
48 You can specify the emacs command name, for example
50 % make install EMACS=xemacs
52 If `EMACS=...' is omitted, EMACS=emacs is used.
56 If you want to install other directories, please do following:
60 You can specify the emacs command name, for example
62 % make install EMACS=xemacs
64 If `EMACS=...' is omitted, EMACS=emacs is used.
66 You can specify the prefix of the directory tree for Emacs Lisp
67 programs and shell scripts, for example:
69 % make install PREFIX=~/
71 If `PREFIX=...' is omitted, the prefix of the directory tree of the
72 specified emacs command is used (perhaps /usr/local).
74 For example, if PREFIX=/usr/local and EMACS 19.34 is specified, it
75 will create the following directory tree:
77 /usr/local/share/emacs/site-lisp/flim/ --- FLIM
79 You can specify site-lisp directory, for example
81 % make install LISPDIR=~/share/emacs/lisp
83 If `LISPDIR=...' is omitted, site-lisp directory of the specified
84 emacs command is used (perhaps /usr/local/share/emacs/site-lisp or
85 /usr/local/lib/xemacs/site-lisp).
87 You can specify other optional settings by editing the file
88 FLIM-CFG. Please read comments in it.
91 load-path (for Emacs or MULE)
92 =============================
94 If you are using Emacs or Mule, please add directory of FLIM to
95 load-path. If you install by default setting, you can write
96 subdirs.el for example:
98 --------------------------------------------------------------------
99 (normal-top-level-add-to-load-path '("apel" "flim"))
100 --------------------------------------------------------------------
102 If you are using XEmacs, there are no need of setting about
112 Command mime-encode-region (START END ENCODING)
114 Encode region START to END of current buffer using ENCODING.
116 Command mime-decode-region (start end encoding)
118 Decode region START to END of current buffer using ENCODING.
120 Command base64-encode-region (start end)
122 Encode current region by base64.
123 START and END are buffer positions.
125 This function calls internal base64 encoder if size of region is
126 smaller than `base64-internal-encoding-limit', otherwise it calls
127 external base64 encoder specified by `base64-external-encoder'. In
128 this case, you must install the program (maybe mmencode included in
129 metamail or XEmacs package).
131 Command base64-decode-region (start end)
133 Decode current region by base64.
134 START and END are buffer positions.
136 This function calls internal base64 decoder if size of region is
137 smaller than `base64-internal-decoding-limit', otherwise it calls
138 external base64 decoder specified by `base64-external-decoder'. In
139 this case, you must install the program (maybe mmencode included in
140 metamail or XEmacs package).
142 Command quoted-printable-encode-region (start end)
144 Encode current region by quoted-printable.
145 START and END are buffer positions.
147 This function calls internal quoted-printable encoder if size of
148 region is smaller than `quoted-printable-internal-encoding-limit',
149 otherwise it calls external quoted-printable encoder specified by
150 `quoted-printable-external-encoder'. In this case, you must install
151 the program (maybe mmencode included in metamail or XEmacs package).
153 Command quoted-printable-decode-region (start end)
155 Decode current region by quoted-printable.
156 START and END are buffer positions.
158 This function calls internal quoted-printable decoder if size of
159 region is smaller than `quoted-printable-internal-decoding-limit',
160 otherwise it calls external quoted-printable decoder specified by
161 `quoted-printable-external-decoder'. In this case, you must install
162 the program (maybe mmencode included in metamail or XEmacs package).
164 Command uuencode-encode-region (start end)
166 Encode region START to END of current buffer using uuencode.
168 Command uuencode-decode-region (start end)
170 Decode region START to END of current buffer using uuencode.
172 Command gzip64-encode-region (start end)
174 Encode region START to END of current buffer using x-gzip64.
176 Command gzip64-decode-region (start end)
178 Decode region START to END of current buffer using x-gzip64.
180 Variable mime-encoding-method-alist
182 Alist of encoding vs. corresponding method to encode region.
183 Each element looks like (STRING . FUNCTION) or (STRING . nil).
184 STRING is content-transfer-encoding.
185 FUNCTION is region encoder and nil means not to encode.
187 Variable mime-decoding-method-alist
189 Alist of encoding vs. corresponding method to decode region.
190 Each element looks like (STRING . FUNCTION).
191 STRING is content-transfer-encoding.
192 FUNCTION is region decoder.
197 Command mime-insert-encoded-file (FILENAME ENCODING)
199 Insert file FILENAME encoded by ENCODING format.
201 Command base64-insert-encoded-file (FILENAME)
203 Encode contents of file FILENAME to base64, and insert the result.
205 It calls external base64 encoder specified by
206 `base64-external-encoder'. So you must install the program (maybe
207 mmencode included in metamail or XEmacs package).
209 Command quoted-printable-insert-encoded-file (FILENAME)
211 Insert quoted-printable encoded file.
213 Command uuencode-insert-encoded-file (FILENAME)
215 Insert uuencode encoded file.
217 Command gzip64-insert-encoded-file (FILENAME)
219 Insert gzip64 encoded file.
221 Variable mime-file-encoding-method-alist
223 Alist of encoding vs. corresponding method to insert encoded file.
224 Each element looks like (STRING . FUNCTION).
225 STRING is content-transfer-encoding.
226 FUNCTION is function to insert encoded file.
231 Function base64-encode-string (STRING)
233 Encode STRING to base64, and return the result.
235 Function base64-decode-string (STRING)
237 Decode STRING which is encoded in base64, and return the result.
239 Function q-encoding-encode-string (STRING &optional MODE)
241 Encode STRING to Q-encoding of encoded-word, and return the result.
242 MODE allows `text', `comment', `phrase' or nil. Default value is
245 Function q-encoding-decode-string (STRING)
247 Decode STRING which is encoded in Q-encoding and return the result.
249 Function base64-encoded-length (STRING)
251 Return length of base64 encoded STRING.
253 Function q-encoded-length (STRING &optional MODE)
255 Return length of Q-encoding encoded STRING.
256 MODE allows `text', `comment', `phrase' or nil. Default value is
263 If you write bug-reports and/or suggestions for improvement, please
264 send them to the tm Mailing List:
266 bug-tm-en@chamonix.jaist.ac.jp (English)
267 bug-tm-ja@chamonix.jaist.ac.jp (Japanese)
269 Via the tm ML, you can report FLIM bugs, obtain the latest release
270 of FLIM, and discuss future enhancements to FLIM. To join the tm ML,
271 send an empty e-mail to
273 tm-en-help@chamonix.jaist.ac.jp (English)
274 tm-ja-help@chamonix.jaist.ac.jp (Japanese)