update.
[elisp/flim.git] / mime-en.texi
1 \input texinfo.tex
2 @c Generated automatically from mime-en.sgml by sinfo 3.7.
3 @setfilename mime-en.info
4 @settitle{FLIM 1.10 Manual about MIME Features}
5 @titlepage
6 @title FLIM 1.10 Manual about MIME Features
7 @author MORIOKA Tomohiko <morioka@@jaist.ac.jp>
8 @subtitle 1998/07/01
9 @end titlepage
10 @node Top, Introduction, (dir), (dir)
11 @top FLIM 1.10 Manual about MIME Features
12
13 @ifinfo
14
15 This file documents MIME features of FLIM, a Internet message
16 parsing/encoding library for GNU Emacs.
17 @end ifinfo
18
19 @menu
20 * Introduction::                What is FLIM?
21 * How to use::                  How to use MIME features
22 * Entity::                      Message and Entity
23 * Content-Type::                Information of Content-Type field
24 * Content-Disposition::         Information of Content-Disposition field
25 * Content-Transfer-Encoding::   Encoding Method
26 * encoded-word::                Network representation of header
27 * custom::                      Various Customization
28 * Appendix::                    
29 * Concept Index::               
30 * Function Index::              
31 * Variable Index::              
32 @end menu
33
34 @node Introduction, How to use, Top, Top
35 @chapter What is FLIM?
36
37 FLIM is a library to provide basic features about message
38 representation or encoding.
39
40
41 @node How to use, Entity, Introduction, Top
42 @chapter How to use MIME features
43
44 Please eval following to use MIME features provided by FLIM:
45
46 @lisp
47 (require 'mime)
48 @end lisp
49
50
51
52 @node Entity, Content-Type, How to use, Top
53 @chapter Message and Entity
54 @cindex mime-entity
55 @cindex entity
56
57 According to RFC 2045 (@ref{RFC 2045}), `The term ``entity'', refers
58 specifically to the MIME-defined header fields and contents of either a
59 message or one of the parts in the body of a multipart entity.'  In this
60 document, the term @strong{entity} indicates all of header fields and
61 body.@refill
62
63 The definition of RFC 2045 indicates that a MIME message is a tree, and
64 each node of the tree is an entity.  Namely MIME extends message to tree
65 structure.@refill
66
67 FLIM uses @strong{mime-entity} structure to represent
68 information of entity.  In this document, it is called simply
69 `mime-entity'.
70
71
72 @menu
73 * Entity creation::             Functions to create mime-entity
74 * Entity hierarchy::            Features about message tree
75 * Entity Attributes::           Functions about attributes of mime-entity
76 * Entity-header::               Information of entity header
77 * entity formatting::           Text presentation of entity
78 * Entity-content::              Contents of Entity
79 * Entity buffer::               Entity as buffer representation
80 * mm-backend::                  Entity representations and implementations
81 @end menu
82
83 @node Entity creation, Entity hierarchy, Entity, Entity
84 @section Functions to create mime-entity
85
86 @defun mime-open-entity &optional  type location
87
88 Open an entity and return it.@refill
89
90 @var{type} is representation-type. (cf. @ref{mm-backend}) @refill
91
92 @var{location} is location of entity.  Specification of it is depended
93 on representation-type.
94 @end defun
95
96
97 @defun mime-parse-buffer &optional  buffer type
98
99 Parse @var{buffer} as message, and set the result to buffer local
100 variable @code{mime-message-structure} of @var{buffer} as
101 mime-entity.@refill
102
103 If @var{buffer} is omitted, current buffer is used.@refill
104
105 @var{type} is representation-type of created
106 mime-entity. (cf. @ref{mm-backend})
107  Default value is @var{buffer}.
108 @end defun
109
110
111
112 @node Entity hierarchy, Entity Attributes, Entity creation, Entity
113 @section Features about message tree
114 @cindex node-id
115 @cindex entity-number
116 @cindex message
117 @cindex root-entity
118
119 Structure of a MIME message is tree.@refill
120
121 In the tree, root node is the entity indicates all of the message.  In
122 this document, it is called @strong{root-entity} or @strong{message}.
123 In FLIM, it is indicated by buffer local variable
124 @code{mime-message-structure}.@refill
125
126 Each entity except root-entity has a parent.  An entity may have
127 children.  We can indicate an entity by relative position from a base
128 entity, based on the parent-child relationship.@refill
129
130 In addition, we can indicate an entity by absolute position of the
131 message.@refill
132
133 Each entity, which is a node of the tree, can be numbered by
134 depth and left-to-right order of the depth.
135 @example
136
137                               +-------+
138                               |  nil  |
139                               +---+---+
140               +-------------------+-------------------+
141             +-+-+               +-+-+               +-+-+
142             | 0 |               | 1 |               | 2 |
143             +-+-+               +-+-+               +-+-+
144               |         +---------+---------+         |
145            +--+--+   +--+--+   +--+--+   +--+--+   +--+--+
146            | 0.0 |   | 1.0 |   | 1.1 |   | 1.2 |   | 2.0 |
147            +-----+   +-----+   +-----+   +-----+   +-----+
148 @end example
149
150 Namely, if depth of a node is n, the node has a node-number, which is
151 consists of n integers.  In this document, it is called
152 @strong{entity-number}.  An entity-number is represented by list of
153 integer, like @code{(1 2 3)}.@refill
154
155 mime-entity has also @strong{node-id}.  A node-id is represented by
156 reversed list of entity-number.  For example, node-id corresponding with
157 1.2.3 is @code{(3 2 1)}.@refill
158
159 Each entity can be indicated by entity-number or node-id in
160 @code{mime-message-structure}.
161
162 @defvar mime-message-structure
163
164 Buffer local variable to store mime-entity structure of message.
165 @end defvar
166
167
168 @defun mime-entity-children entity
169
170 Return list of entities included in the @var{entity}.
171 @end defun
172
173
174 @defun mime-entity-parent entity  &optional  message
175
176 Return parent entity of the @var{entity}.@refill
177
178 If @var{message} is specified, it is regarded as root instead of
179 @code{mime-message-structure}.
180 @end defun
181
182
183 @defun mime-root-entity-p entity
184
185 Return non-@code{nil} if @var{entity} is root entity (message).
186 @end defun
187
188
189 @defun mime-entity-node-id entity
190
191 Return node-id of @var{entity}.
192 @end defun
193
194
195 @defun mime-entity-number entity
196
197 Return entity-number of @var{entity}.
198 @end defun
199
200
201 @defun mime-find-entity-from-number entity-number  &optional  message
202
203 Return entity from @var{entity-number} in @var{message}.@refill
204
205 If @var{message} is not specified, @code{mime-message-structure} is
206 used.
207 @end defun
208
209
210 @defun mime-find-entity-from-node-id entity-node-id  &optional  message
211
212 Return entity from @var{entity-node-id} in @var{message}.@refill
213
214 If @var{message} is not specified, @code{mime-message-structure} is
215 used.
216 @end defun
217
218
219
220 @node Entity Attributes, Entity-header, Entity hierarchy, Entity
221 @section Functions about attributes of mime-entity
222
223 @defun mime-entity-content-type entity
224
225 Return content-type of @var{entity}.  (cf. @ref{mime-content-type})
226 @end defun
227
228
229 @defun mime-entity-content-disposition entity
230
231 Return content-disposition of
232 @var{entity}. (cf. @ref{mime-content-disposition})
233 @end defun
234
235
236 @defun mime-entity-filename entity
237
238 Return file name of @var{entity}.
239 @end defun
240
241
242 @defun mime-entity-encoding entity  &optional  default-encoding
243
244 Return content-transfer-encoding of @var{entity}.
245 (cf. @ref{Content-Transfer-Encoding}) @refill
246
247 If the @var{entity} does not have Content-Transfer-Encoding field, this
248 function returns @var{default-encoding}.  If it is nil, @code{"7bit"} is
249 used as default value.
250 @end defun
251
252
253 @defun mime-entity-cooked-p entity
254
255 Return non-nil if contents of @var{entity} has been already
256 code-converted.
257 @end defun
258
259
260
261 @node Entity-header, entity formatting, Entity Attributes, Entity
262 @section Information of entity header
263
264 @defun mime-fetch-field field-name  &optional  entity
265
266 Return field-body of @var{field-name} field in header of
267 @var{entity}.@refill
268
269 The results is network representation.@refill
270
271 If @var{entity} is omitted, @code{mime-message-structure} is used as
272 default value.@refill
273
274 If @var{field-name} field is not found, this function returns
275 @code{nil}.
276 @end defun
277
278
279 @defun mime-read-field field-name  &optional  entity
280
281 Parse @var{field-name} field in header of @var{entity}, and return the
282 result.@refill
283
284 Format of result is depended on kind of field.  For non-structured
285 field, this function returns string.  For structured field, it returns
286 list corresponding with structure of the field.@refill
287
288 Strings in the result will be converted to internal representation of
289 Emacs.@refill
290
291 If @var{entity} is omitted, @code{mime-message-structure} is used as
292 default value.@refill
293
294 If @var{field-name} field is not found, this function returns
295 @code{nil}.
296 @end defun
297
298
299
300 @node entity formatting, Entity-content, Entity-header, Entity
301 @section Text presentation of entity
302
303 @defun mime-insert-header entity  &optional  invisible-fields visible-fields
304
305 Insert before point a decoded contents of header of @var{entity}.@refill
306
307 @var{invisible-fields} is list of regexps to match field-name to hide.
308 @var{visible-fields} is list of regexps to match field-name to
309 hide.@refill
310
311 If a field-name is matched with some elements of @var{invisible-fields}
312 and matched with none of @var{visible-fields}, this function don't
313 insert the field.@refill
314
315 Each encoded-word (@ref{encoded-word}) in the header is decoded.  ``Raw
316 non us-ascii characters'' are also decoded as
317 @code{default-mime-charset}.
318 @end defun
319
320
321 @defun mime-insert-text-content entity
322
323 Insert before point a contents of @var{entity} as text entity.@refill
324
325 Contents of the @var{entity} are decoded as MIME charset (@ref{MIME charset}).  If the @var{entity} does not have charset parameter of
326 Content-Type field, @code{default-mime-charset} is used as default
327 value.
328 @end defun
329
330
331 @defvar default-mime-charset
332
333 Symbol to indicate default value of MIME-charset
334 (@ref{MIME-charset}).@refill
335
336 It is used when MIME-charset is not specified.@refill
337
338 It is originally variable of APEL.
339 @end defvar
340
341
342
343 @node Entity-content, Entity buffer, entity formatting, Entity
344 @section Contents of Entity
345
346 @defun mime-entity-content entity
347
348 Return content of @var{entity} as byte sequence.
349 @end defun
350
351
352 @defun mime-write-entity-content entity filename
353
354 Write content of @var{entity} into @var{filename}.
355 @end defun
356
357
358 @defun mime-write-entity entity filename
359
360 Write representation of @var{entity} into @var{filename}.
361 @end defun
362
363
364 @defun mime-write-entity-body entity filename
365
366 Write body of @var{entity} into @var{filename}.
367 @end defun
368
369
370
371 @node Entity buffer, mm-backend, Entity-content, Entity
372 @section Entity as buffer representation
373
374 @defun mime-entity-buffer entity
375
376 Return buffer, which contains @var{entity}.
377 @end defun
378
379
380 @defun mime-entity-point-min entity
381
382 Return the start point of @var{entity} in the buffer which contains
383 @var{entity}.
384 @end defun
385
386
387 @defun mime-entity-point-max entity
388
389 Return the end point of @var{entity} in the buffer which contains
390 @var{entity}.
391 @end defun
392
393
394 @defun mime-entity-header-start entity
395
396 Return the start point of header of @var{entity} in the buffer which
397 contains @var{entity}.
398 @end defun
399
400
401 @defun mime-entity-header-end entity
402
403 Return the end point of header of @var{entity} in the buffer which
404 contains @var{entity}.
405 @end defun
406
407
408 @defun mime-entity-body-start entity
409
410 Return the start point of body of @var{entity} in the buffer which
411 contains @var{entity}.
412 @end defun
413
414
415 @defun mime-entity-body-end entity
416
417 Return the end point of body of @var{entity} in the buffer which
418 contains @var{entity}.
419 @end defun
420
421
422
423 @node mm-backend,  , Entity buffer, Entity
424 @section Entity representations and implementations
425 @cindex mm-backend
426 @cindex entity processing method
427 @cindex representation-type
428
429 Entity is an abstraction.  It is designed to use various data
430 representations for their purposes.@refill
431
432 Each entity has @strong{representation-type}.  It must be specified when
433 an entity is created. (cf. @ref{Entity Creation}) @refill
434
435 Functions about entity are implemented by request processing to the
436 entity.  Each entity knows its representation-type.  Each entity calls
437 processing function corresponding with the representation-type.  Such
438 kind of function is called @strong{entity processing method}.  A module,
439 consists of them corresponding with a representation-type, is called
440 @strong{mm-backend}.@refill
441
442 Module name of each mm-backend consists of the prefix @code{mm}
443 and its representation-type.  The module is required automatically
444 when its entity is created at first.
445
446
447 @menu
448 * Request for entity::          Message-passing for entity
449 * mm-backend module::           Definition of mm-backend
450 @end menu
451
452 @node Request for entity, mm-backend module, mm-backend, mm-backend
453 @subsection Message-passing for entity
454
455 @defun mime-entity-send entity message  &rest  args
456
457 Send @var{message} to @var{entity} with @var{args}, and return the
458 result.@refill
459
460 @var{args} is arguments of the @var{message}.
461 @end defun
462
463
464
465 @node mm-backend module,  , Request for entity, mm-backend
466 @subsection Definition of mm-backend
467
468 @defmac mm-define-backend type &optional  parents
469
470 Define @var{type} as a mm-backend.@refill
471
472 If @var{PARENTS} is specified, @var{type} inherits parents.  Each parent
473 must be representation-type.@refill
474
475 Example:@refill
476
477 @lisp
478 (mm-define-backend chao (generic))
479 @end lisp
480 @end defmac
481
482
483 @defmac mm-define-method name args  &rest  body
484
485 Define @var{name} as a method function of (nth 1 (car @var{args}))
486 backend.@refill
487
488 @var{args} is like an argument list of lambda, but (car @var{args}) must
489 be specialized parameter.  (car (car @var{args})) is name of variable
490 and (nth 1 (car @var{args})) is name of backend
491 (representation-type).@refill
492
493 Example:@refill
494
495 @lisp
496 (mm-define-method entity-cooked-p ((entity chao)) nil)
497 @end lisp
498 @end defmac
499
500
501
502 @node Content-Type, Content-Disposition, Entity, Top
503 @chapter Information of Content-Type field
504 @cindex mime-content-type
505 @cindex Content-Type field
506
507 @strong{Content-Type field} is a field to indicate kind of contents or
508 data format, such as media-type (@ref{media-type}) and MIME charset.  It
509 is defined in RFC 2045 (@ref{RFC 2045}).
510
511 @noindent
512 @strong{[Memo]}
513 @quotation
514
515 Historically, Content-Type field was proposed in RFC 1049.  In it,
516 Content-Type did not distinguish type and subtype, and there are no
517 mechanism to represent kind of character code like MIME charset.
518 @end quotation
519
520
521 FLIM provides parser for Content-Type field and structure
522 @strong{mime-content-type} to store information of
523 Content-Type field.
524
525
526 @menu
527 * Content-Type field::          Format of Content-Type field
528 * mime-content-type::           mime-content-type structure
529 * Content-Type parser::         Parser
530 * Content-Type utility::        Utility functions
531 @end menu
532
533 @node Content-Type field, mime-content-type, Content-Type, Content-Type
534 @section Format of Content-Type field
535 @cindex parameter
536 @cindex subtype
537 @cindex type
538
539 Format of Content-Type field is defined as follows:
540
541 @quotation
542 ``Content-Type'' ``:'' @strong{type} ``/''
543 @strong{subtype} *( ``;'' @strong{parameter} )
544 @end quotation
545
546 For example:
547
548 @quotation
549 @example
550 Content-Type: image/jpeg
551 @end example
552 @end quotation
553
554
555 @quotation
556 @example
557 Content-Type: text/plain; charset=iso-2022-jp
558 @end example
559 @end quotation
560
561 `type' and `subtype' indicate format of an entity.  In this document,
562 pair of them is called `media-type'.  `image/jpeg' or `text/plain' is
563 a media-type.
564
565 @noindent
566 @strong{[Memo]}
567 @quotation
568
569 If an entity does not have Content-Type field, it is regarded as
570 following:
571
572 @quotation
573 @example
574 Content-Type: text/plain; charset=us-ascii
575 @end example
576 @end quotation
577
578 @noindent
579 (cf. @ref{us-ascii})
580 @end quotation
581
582
583
584 @node mime-content-type, Content-Type parser, Content-Type field, Content-Type
585 @section mime-content-type structure
586
587 @deffn{Structure} mime-content-type
588
589 Structure to store information of a Content-Type field.@refill
590
591 Applications should use reference functions
592 @code{mime-content-type-SLOT} to refer information of the
593 structure.@refill
594
595 Slots of the structure are following:
596
597 @table @var
598 @item primary-type
599 primary type of media-type (symbol).
600
601 @item subtype
602 subtype of media-type (symbol).
603
604 @item parameters
605 parameters of Content-Type field (association-list).
606
607 @end table
608 @end deffn
609
610
611 @defun make-mime-content-type type subtype
612            &optional  parameters
613
614 Constructor of content-type.
615 @end defun
616
617
618 @defun mime-content-type-parameter content-type parameter
619
620 Return value of @var{parameter} of @var{content-type}.
621 @end defun
622
623
624
625 @node Content-Type parser, Content-Type utility, mime-content-type, Content-Type
626 @section Parser
627
628 @defun mime-parse-Content-Type string
629
630 Parse @var{string} as a field-body of Content-Type field, and return the
631 result as mime-content-type (@ref{mime-content-type}) structure.
632 @end defun
633
634
635 @defun mime-read-Content-Type
636
637 Parse Content-Type field of the current buffer, and return the result as
638 mime-content-type (@ref{mime-content-type}) structure.@refill
639
640 Return @code{nil} if Content-Type field is not found.
641 @end defun
642
643
644
645 @node Content-Type utility,  , Content-Type parser, Content-Type
646 @section Utility functions
647
648 @defun mime-type/subtype-string type  &optional  subtype
649
650 Return type/subtype string from @var{type} and @var{subtype}.
651 @end defun
652
653
654
655 @node Content-Disposition, Content-Transfer-Encoding, Content-Type, Top
656 @chapter Information of Content-Disposition field
657 @cindex mime-content-disposition
658 @cindex RFC 2183
659 @cindex Standards Track
660 @cindex Content-Disposition field
661
662 @strong{Content-Disposition field} is an optional field to
663 specify presentation of an entity or attributes of an entity, such as
664 file name.
665
666
667 @noindent
668 [RFC 2183]
669 @quotation
670 S. Dorner, K. Moore and R. Troost, ``Communicating Presentation
671 Information in Internet Messages: The Content-Disposition Header'',
672 August 1997, Standards Track.
673 @end quotation
674
675 FLIM provides parser for Content-Disposition field and structure
676 @strong{mime-content-disposition} to store information of
677 Content-Disposition field.
678
679
680 @menu
681 * mime-content-disposition::    mime-content-disposition structure
682 * Content-Disposition parser::  Parser for Content-Disposition field
683 @end menu
684
685 @node mime-content-disposition, Content-Disposition parser, Content-Disposition, Content-Disposition
686 @section mime-content-disposition structure
687
688 @deffn{Structure} mime-content-disposition
689
690 Structure to store information of a Content-Disposition field.@refill
691
692 Applications should use reference functions
693 @code{mime-content-disposition-SLOT} to refer information of the
694 structure.@refill
695
696 Slots of the structure are following:
697
698 @table @var
699 @item disposition-type
700 disposition-type (symbol).
701
702 @item parameters
703 parameters of Content-Disposition field
704 (association-list).
705
706 @end table
707 @end deffn
708
709
710 @defun mime-content-disposition-parameter content-disposition parameter
711
712 Return value of @var{parameter} of @var{content-disposition}.
713 @end defun
714
715
716 @defun mime-content-disposition-filename content-disposition
717
718 Return filename of @var{content-disposition}.
719 @end defun
720
721
722
723 @node Content-Disposition parser,  , mime-content-disposition, Content-Disposition
724 @section Parser for Content-Disposition field
725
726 @defun mime-parse-Content-Disposition string
727
728 Parse @var{string} as field-body of Content-Disposition field, and
729 return the result.
730 @end defun
731
732
733 @defun mime-read-Content-Disposition
734
735 Read field-body of Content-Disposition field from current-buffer,@refill
736
737 Return nil if Content-Disposition field is not found.
738 @end defun
739
740
741
742 @node Content-Transfer-Encoding, encoded-word, Content-Disposition, Top
743 @chapter Encoding Method
744 @cindex Content-Transfer-Encoding field
745
746 @strong{Content-Transfer-Encoding field} is a header field to indicate
747 body encoding of a entity.@refill
748
749 FLIM provides parser functions for Content-Transfer-Encoding field.
750 They represent information of Content-Transfer-Encoding field as
751 string.@refill
752
753 In addition, FLIM provides encoder/decoder functions by
754 Content-Transfer-Encoding.
755
756
757 @menu
758 * Content-Transfer-Encoding parser::  Parser
759 * encoder/decoder::             Encoder/decoder
760 * Encoding information::        Other utilities
761 * mel-backend::                 How to write encoder/decoder module
762 * generic function for mel-backend::  How to add encoding/decoding service
763 @end menu
764
765 @node Content-Transfer-Encoding parser, encoder/decoder, Content-Transfer-Encoding, Content-Transfer-Encoding
766 @section Parser
767
768 @defun mime-parse-Content-Transfer-Encoding string
769
770 Parse @var{string} as a field-body of Content-Transfer-Encoding field,
771 and return the result.
772 @end defun
773
774
775 @defun mime-read-Content-Transfer-Encoding &optional default-encoding
776
777 Parse Content-Transfer-Encoding field of the current buffer, and return
778 the result.@refill
779
780 Return @var{default-encoding} if Content-Transfer-Encoding field is not
781 found.  If it is not specified, @code{nil} is used as the default value.
782 @end defun
783
784
785
786 @node encoder/decoder, Encoding information, Content-Transfer-Encoding parser, Content-Transfer-Encoding
787 @section Encoder/decoder
788
789 @defun mime-encode-region start end encoding
790
791 Encode region @var{start} to @var{end} of current buffer using
792 @var{encoding}.
793 @end defun
794
795
796 @defun mime-decode-region start end encoding
797
798 Decode region @var{start} to @var{end} of current buffer using
799 @var{encoding}.
800 @end defun
801
802
803
804 @defun mime-decode-string string encoding
805
806 @var{string} \e$B$r\e(B @var{encoding} \e$B$H$7$FI|9f$7$?7k2L$rJV$7$^$9!#\e(B
807 @end defun
808
809
810
811 @defun mime-insert-encoded-file filename encoding
812
813 Insert file @var{FILENAME} encoded by @var{ENCODING} format.
814 @end defun
815
816
817 @defun mime-write-decoded-region start end filename encoding
818
819 Decode and write current region encoded by @var{encoding} into
820 @var{filename}.@refill
821
822 @var{start} and @var{end} are buffer positions.
823 @end defun
824
825
826
827 @node Encoding information, mel-backend, encoder/decoder, Content-Transfer-Encoding
828 @section Other utilities
829
830 @defun mime-encoding-list &optional  SERVICE
831
832 Return list of Content-Transfer-Encoding.@refill
833
834 If @var{service} is specified, it returns available list of
835 Content-Transfer-Encoding for it.
836 @end defun
837
838
839 @defun mime-encoding-alist &optional  SERVICE
840
841 Return table of Content-Transfer-Encoding for completion.@refill
842
843 If @var{service} is specified, it returns available list of
844 Content-Transfer-Encoding for it.
845 @end defun
846
847
848
849 @node mel-backend, generic function for mel-backend, Encoding information, Content-Transfer-Encoding
850 @section How to write encoder/decoder module
851
852 @defmac mel-define-method name args  &rest  body
853
854 Define @var{name} as a method function of (nth 1 (car (last
855 @var{args}))) backend.@refill
856
857 @var{args} is like an argument list of lambda, but (car (last
858 @var{args})) must be specialized parameter.  (car (car (last
859 @var{args}))) is name of variable and (nth 1 (car (last @var{args}))) is
860 name of backend (encoding).@refill
861
862 Example:@refill
863
864 @lisp
865 (mel-define-method mime-write-decoded-region (start end filename
866                                                     (nil "base64"))
867   "Decode and write current region encoded by base64 into FILENAME.
868 START and END are buffer positions."
869   (interactive
870    (list (region-beginning) (region-end)
871          (read-file-name "Write decoded region to file: ")))
872   (let ((str (buffer-substring start end)))
873     (with-temp-buffer
874       (insert (decode-base64-string str))
875       (write-region-as-binary (point-min) (point-max) filename)
876       )))
877 @end lisp
878 @end defmac
879
880
881 @defmac mel-define-method-function spec function
882
883 Set @var{spec}'s function definition to @var{function}.@refill
884
885 First element of @var{spec} is service.@refill
886
887 Rest of @var{args} is like an argument list of lambda, but (car (last
888 @var{args})) must be specialized parameter.  (car (car (last
889 @var{args}))) is name of variable and (nth 1 (car (last @var{args}))) is
890 name of backend (encoding).@refill
891
892 Example:@refill
893
894 @lisp
895 (mel-define-method-function (mime-encode-string string (nil "base64"))
896                             'encode-base64-string)
897 @end lisp
898 @end defmac
899
900
901
902 @node generic function for mel-backend,  , mel-backend, Content-Transfer-Encoding
903 @section How to add encoding/decoding service
904
905 @defmac mel-define-service name &optional  args doc-string
906
907 Define @var{name} as a service for Content-Transfer-Encodings.@refill
908
909 If @var{args} is specified, @var{name} is defined as a generic function
910 for the service.@refill
911
912 Example:@refill
913
914 @lisp
915 (mel-define-service encoded-text-encode-string (string encoding)
916   "Encode STRING as encoded-text using ENCODING.
917 ENCODING must be string.")
918 @end lisp
919 @end defmac
920
921
922
923 @node encoded-word, custom, Content-Transfer-Encoding, Top
924 @chapter Network representation of header
925 @cindex RFC 2047
926 @cindex Standards Track
927 @cindex RFC 2047
928
929 encoded-word \e$B$O\e(B header \e$B$GHs\e(B ASCII (@ref{ASCII}) \e$BJ8;z$rI=8=$9$k$?$a$N7A<0\e(B
930 \e$B$G!"\e(B@strong{RFC 2047} \e$B$GDj5A$5$l$F$$$^$9!#\e(B@refill
931
932
933 @noindent
934 [RFC 2047]
935 @quotation
936 K. Moore, ``MIME (Multipurpose Internet Mail Extensions) Part Three:
937 Message Header Extensions for Non-ASCII Text'', November 1996, Standards
938 Track (obsolete RFC 1521,1522,1590).
939 @end quotation
940
941 \e$B$^$?!"9T57$N0-$$$3$H$@$H8@$($^$9$,!"\e(Bencoded-word \e$B$rMQ$$$:$KHs\e(B ASCII
942 (@ref{ASCII}) \e$BJ8;z$r\e(B header \e$B$KF~$l$?5-;v$bB8:_$7$^$9!#\e(B@refill
943
944 FLIM \e$B$O$3$l$i$rId9f2=!&I|9f2=$9$k5!G=$rDs6!$7$^$9!#\e(B
945
946
947 @menu
948 * Header encoder/decoder::      Header encoding/decoding
949 @end menu
950
951 @node Header encoder/decoder,  , encoded-word, encoded-word
952 @section Header encoding/decoding
953
954 @defun eword-encode-header &optional  code-conversion separator
955
956 Decode MIME encoded-words in header fields.@refill
957
958 If @var{code-conversion} is @code{nil}, it decodes only encoded-words.
959 If it is mime-charset, it decodes non-ASCII bit patterns as the
960 mime-charset.  Otherwise it decodes non-ASCII bit patterns as the
961 default-mime-charset.@refill
962
963 If @var{separator} is not nil, it is used as header separator.
964 @end defun
965
966
967 @defun eword-encode-header &optional  code-conversion
968
969 Encode header fields to network representation, such as MIME
970 encoded-word.@refill
971
972 It refer variable @code{eword-field-encoding-method-alist}.
973 @end defun
974
975
976
977 @node custom, Appendix, encoded-word, Top
978 @chapter Various Customization
979
980 @deffn{group} mime
981
982 MIME \e$B4XO"5!G=$K4X$9$k\e(B group.@refill
983
984 @code{mail} \e$B$H\e(B @code{news} \e$B$KB0$9$k!#\e(B
985 @end deffn
986
987
988 @defvar mime-temp-directory
989
990 MIME \e$B5!G=$K4X$9$k<BAu$,0l;~E*$K;HMQ$9$k\e(B file \e$B$r:n@.$9$k\e(B 
991 directory.@refill
992
993 \e$B4D6-JQ?t\e(B @code{MIME_TMP_DIR}, @code{TM_TMP_DIR}, @code{TMPDIR},
994 @code{TMP} \e$B$b$7$/$O\e(B @code{TEMP} \e$B$,@_Dj$5$l$F$$$?>l9g!"$=$l$r=i4|CM$H$7$F\e(B
995 \e$BMQ$$$k!#2?$b@_Dj$5$l$F$$$J$$>l9g!"\e(B@code{"/tmp/"} \e$B$rMQ$$$k!#\e(B
996 @end defvar
997
998
999
1000 @node Appendix, Concept Index, custom, Top
1001 @chapter Appendix
1002
1003
1004 @menu
1005 * Glossary::                    
1006 * Bug report::                  How to report bugs
1007 * CVS::                         CVS based development
1008 * History::                     History of FLIM
1009 @end menu
1010
1011 @node Glossary, Bug report, Appendix, Appendix
1012 @section Glossary
1013
1014
1015 @menu
1016 * 7bit::                        
1017 * 8bit::                        
1018 * ASCII::                       
1019 * Base64::                      
1020 * binary::                      
1021 * coded character set::         Coded character set, Character code
1022 * media-type::                  
1023 * message::                     
1024 * MIME::                        
1025 * MIME charset::                
1026 * MTA::                         
1027 * MUA::                         
1028 * Quoted-Printable::            
1029 * RFC 822::                     
1030 * RFC 1036::                    
1031 * RFC 2045::                    
1032 * RFC 2046::                    
1033 * RFC 2048::                    
1034 * RFC 2049::                    
1035 * plain text::                  
1036 * us-ascii::                    
1037 @end menu
1038
1039 @node 7bit, 8bit, Glossary, Glossary
1040 @subsection 7bit
1041 @cindex 7bit (textual) string
1042 @cindex 7bit data
1043 @cindex 7bit
1044
1045 @strong{7bit} means any integer between 0 .. 127.@refill
1046
1047 Any data represented by 7bit integers is called @strong{7bit data}.@refill
1048
1049 Textual string consisted of Control characters between 0 .. 31 and 127,
1050 and space represented by 32, and graphic characters between 33 .. 236
1051 are called @strong{7bit (textual) string}.@refill
1052
1053 Conventional Internet MTA (@ref{MTA}) can translate 7bit data, so it is
1054 no need to translate by Quoted-Printable (@ref{Quoted-Printable}) or
1055 Base64 (@ref{Base64}) for 7bit data.@refill
1056
1057 However if there are too long lines, it can not translate by 7bit MTA
1058 even if it is 7bit data.  RFC 821 (@ref{RFC 821}) and RFC 2045 (@ref{RFC 2045}) require lines in 7bit data must be less than 998 bytes.  So if a
1059 ``7bit data'' has a line more than 999 bytes, it is regarded as binary
1060 (@ref{binary}).  For example, Postscript file should be encoded by
1061 Quoted-Printable.
1062
1063
1064 @node 8bit, ASCII, 7bit, Glossary
1065 @subsection 8bit
1066 @cindex 8bit (textual) string
1067 @cindex 8bit data
1068 @cindex 8bit
1069
1070 @strong{8bit} means any integer between 0 .. 255.@refill
1071
1072 Any data represented by 8bit integers is called @strong{8bit data}.@refill
1073
1074 Textual string consisted of Control characters between 0 .. 31, 127, and
1075 128 .. 159, and space represented by 32, and graphic characters between
1076 33 .. 236 and 160 .. 255 are called @strong{8bit (textual) string}.@refill
1077
1078 For example, iso-8859-1 (@ref{iso-8859-1}) or euc-kr (@ref{euc-kr}) are
1079 coded-character-set represented by 8bit textual string.@refill
1080
1081 Traditional Internet MTA (@ref{MTA}) can translate only 7bit
1082 (@ref{7bit}) data, so if a 8bit data will be translated such MTA, it
1083 must be encoded by Quoted-Printable (@ref{Quoted-Printable}) or Base64
1084 (@ref{Base64}).@refill
1085
1086 However 8bit MTA are increasing today.@refill
1087
1088 However if there are too long lines, it can not translate by 8bit MTA
1089 even if it is 8bit data.  RFC 2045 (@ref{RFC 2045}) require lines in
1090 8bit data must be less than 998 bytes.  So if a ``8bit data'' has a line
1091 more than 999 bytes, it is regarded as binary (@ref{binary}), so it must
1092 be encoded by Base64 or Quoted-Printable.
1093
1094
1095 @node ASCII, Base64, 8bit, Glossary
1096 @subsection ASCII
1097 @cindex ANSI X3.4:1986
1098 @cindex ASCII
1099 @cindex ASCII
1100
1101 @strong{ASCII} is a 94-character set contains primary latin characters
1102 (A-Z, a-z), numbers and some characters.  It is a standard of the United
1103 States of America.  It is a variant of ISO 646 (@ref{ISO 646}).
1104
1105
1106 @noindent
1107 [ASCII]
1108 @quotation
1109 ``Coded Character Set -- 7-Bit American Standard Code for Information
1110 Interchange'', ANSI X3.4:1986.
1111 @end quotation
1112
1113
1114
1115 @node Base64, binary, ASCII, Glossary
1116 @subsection Base64
1117 @cindex pad
1118 @cindex Base64
1119
1120 @strong{Base64} is a transfer encoding method of MIME (@ref{MIME})
1121 defined in RFC 2045 (@ref{RFC 2045}).@refill
1122
1123 The encoding process represents 24-bit groups of input bits as output
1124 strings of 4 encoded characters.  Encoded characters represent integer 0
1125 .. 63 or @strong{pad}.  Base64 data must be 4 * n bytes, so pad is used
1126 to adjust size.@refill
1127
1128 These 65 characters are subset of all versions of ISO 646, including
1129 US-ASCII, and all versions of EBCDIC.  So it is safe even if it is
1130 translated by non-Internet gateways.
1131
1132
1133 @node binary, coded character set, Base64, Glossary
1134 @subsection binary
1135 @cindex binary
1136
1137 Any byte stream is called @strong{binary}.@refill
1138
1139 It does not require structureof lines.  It differs from from 8bit
1140 (@ref{8bit}).@refill
1141
1142 In addition, if line structured data contain too long line (more than
1143 998 bytes), it is regarded as binary.
1144
1145
1146 @node coded character set, media-type, binary, Glossary
1147 @subsection Coded character set, Character code
1148
1149 A set of unambiguous rules that establishes a character set and the
1150 one-to-one relationship between the characters of the set and their
1151 bit combinations.
1152
1153
1154 @node media-type, message, coded character set, Glossary
1155 @subsection media-type
1156 @cindex x-token
1157 @cindex message
1158 @cindex multipart
1159 @cindex application
1160 @cindex video
1161 @cindex audio
1162 @cindex image
1163 @cindex text
1164 @cindex subtype
1165 @cindex type
1166 @cindex media-type
1167
1168 @strong{media-type} specifies the nature of the data in the body of MIME
1169 (@ref{MIME}) entity (@ref{entity}).  It consists of @strong{type} and
1170 @strong{subtype}.  It is defined in RFC 2046 (@ref{RFC 2046}).@refill
1171
1172 Currently there are following standard primary-types:
1173
1174 @itemize @bullet
1175 @item
1176 @strong{text}
1177 @item
1178 @strong{image}
1179 @item
1180 @strong{audio}
1181 @item
1182 @strong{video}
1183 @item
1184 @strong{application}
1185 @item
1186 @strong{multipart} (@ref{multipart})
1187 @item
1188 @strong{message}
1189 @end itemize
1190
1191
1192 And there are various subtypes, for example, application/octet-stream,
1193 audio/basic, image/jpeg, multipart/mixed (@ref{multipart/mixed}),
1194 text/plain (@ref{text/plain}), video/mpeg...  @refill
1195
1196 You can refer registered media types at MEDIA TYPES
1197 (ftp://ftp.isi.edu/in-notes/iana/assignments/media-types).@refill
1198
1199 In addition, you can use private type or subtype using @strong{x-token},
1200 which as the prefix `x-'.  However you can not use them in
1201 public.@refill
1202
1203 (cf. @ref{Content-Type field})
1204
1205
1206
1207 @node message, MIME, media-type, Glossary
1208 @subsection message
1209
1210 In this document, it means mail defined in RFC 822 (@ref{RFC 822}) and
1211 news message defined in RFC 1036 (@ref{RFC 1036}).
1212
1213
1214 @node MIME, MIME charset, message, Glossary
1215 @subsection MIME
1216 @cindex Multipurpose Internet Mail Extensions
1217
1218 MIME stands for @strong{Multipurpose Internet Mail Extensions}, it is an
1219 extension for RFC 822 (@ref{RFC 822}).@refill
1220
1221 According to RFC 2045:@refill
1222
1223 STD 11, RFC 822, defines a message representation protocol specifying
1224 considerable detail about US-ASCII message headers, and leaves the
1225 message content, or message body, as flat US-ASCII text.  This set of
1226 documents, collectively called the Multipurpose Internet Mail
1227 Extensions, or MIME, redefines the format of messages to allow for
1228
1229 @enumerate
1230 @item
1231 textual message bodies in character sets other than US-ASCII,
1232 @item
1233 an extensible set of different formats for non-textual message
1234 bodies,
1235 @item
1236 multi-part message bodies, and
1237 @item
1238 textual header information in character sets other than US-ASCII.
1239 @end enumerate
1240
1241
1242 It is defined in RFC 2045 (@ref{RFC 2045}), RFC 2046 (@ref{RFC 2046}),
1243 RFC 2047 (@ref{encoded-word}), RFC 2048 (@ref{RFC 2048}) and RFC 2049
1244 (@ref{RFC 2049}).
1245
1246
1247 @node MIME charset, MTA, MIME, Glossary
1248 @subsection MIME charset
1249
1250 Coded character set (@ref{coded character set}) used in Content-Type
1251 field (@ref{Content-Type field}) or charset parameter of encoded-word
1252 (@ref{encoded-word}).@refill
1253
1254 It is defined in RFC 2045 (@ref{RFC 2045}).@refill
1255
1256 iso-2022-jp (@ref{iso-2022-jp}) or euc-kr (@ref{euc-kr}) are kinds of
1257 it.  (In this document, MIME charsets are written by small letters to
1258 distinguish graphic character set (@ref{graphic character set}).  For
1259 example, ISO 8859-1 is a graphic character set, and iso-8859-1 is a MIME
1260 charset)
1261
1262
1263 @node MTA, MUA, MIME charset, Glossary
1264 @subsection MTA
1265 @cindex Message Transfer Agent
1266
1267 @strong{Message Transfer Agent}.  It means mail transfer programs
1268 (ex. sendmail) and news servers.@refill
1269
1270 (cf. @ref{MUA})
1271
1272
1273
1274 @node MUA, Quoted-Printable, MTA, Glossary
1275 @subsection MUA
1276 @cindex Message User Agent
1277
1278 @strong{Message User Agent}.  It means mail readers and news
1279 readers.@refill
1280
1281 (cf. @ref{MTA})
1282
1283
1284
1285 @node Quoted-Printable, RFC 822, MUA, Glossary
1286 @subsection Quoted-Printable
1287 @cindex Quoted-Printable
1288
1289 @strong{Quoted-Printable} is a transfer encoding method of MIME
1290 (@ref{MIME}) defined in RFC 2045 (@ref{RFC 2045}).@refill
1291
1292 If the data being encoded are mostly US-ASCII text, the encoded form of
1293 the data remains largely recognizable by humans.@refill
1294
1295 (cf. @ref{Base64})
1296
1297
1298
1299 @node RFC 822, RFC 1036, Quoted-Printable, Glossary
1300 @subsection RFC 822
1301 @cindex RFC 822
1302 @cindex STD 11
1303 @cindex Internet mail
1304 @cindex Internet message
1305 @cindex message header
1306
1307 A RFC defines format of Internet mail message, mainly @strong{message header}.
1308
1309 @noindent
1310 @strong{[Memo]}
1311 @quotation
1312
1313 news message is based on RFC 822, so @strong{Internet message} may be
1314 more suitable than @strong{Internet mail} .
1315 @end quotation
1316
1317
1318
1319 @noindent
1320 [RFC 822]
1321 @quotation
1322 D. Crocker, ``Standard for the Format of ARPA Internet Text Messages'',
1323 August 1982, STD 11.
1324 @end quotation
1325
1326
1327
1328 @node RFC 1036, RFC 2045, RFC 822, Glossary
1329 @subsection RFC 1036
1330 @cindex RFC 1036
1331 @cindex USENET
1332
1333 A RFC defines format of USENET message.  It is a subset of RFC 822
1334 (@ref{RFC 822}).  It is not Internet standard, but a lot of netnews
1335 excepting Usenet uses it.
1336
1337
1338 @noindent
1339 [USENET: RFC 1036]
1340 @quotation
1341 M. Horton and R. Adams, ``Standard for Interchange of USENET Messages'',
1342 December 1987, (obsolete RFC 850).
1343 @end quotation
1344
1345
1346
1347 @node RFC 2045, RFC 2046, RFC 1036, Glossary
1348 @subsection RFC 2045
1349 @cindex RFC 2045
1350 @cindex Standards Track
1351
1352
1353 @noindent
1354 [RFC 2045]
1355 @quotation
1356 N. Freed and N. Borenstein, ``Multipurpose Internet Mail Extensions
1357 (MIME) Part One: Format of Internet Message Bodies'', November 1996,
1358 Standards Track (obsolete RFC 1521, 1522, 1590).
1359 @end quotation
1360
1361
1362
1363 @node RFC 2046, RFC 2048, RFC 2045, Glossary
1364 @subsection RFC 2046
1365 @cindex RFC 2046
1366 @cindex Standards Track
1367
1368
1369 @noindent
1370 [RFC 2046]
1371 @quotation
1372 N. Freed and N. Borenstein, ``Multipurpose Internet Mail Extensions
1373 (MIME) Part Two: Media Types'', November 1996, Standards Track (obsolete
1374 RFC 1521, 1522, 1590).
1375 @end quotation
1376
1377
1378
1379 @node RFC 2048, RFC 2049, RFC 2046, Glossary
1380 @subsection RFC 2048
1381 @cindex RFC 2048
1382 @cindex Standards Track
1383
1384
1385 @noindent
1386 [RFC 2048]
1387 @quotation
1388 N. Freed, J. Klensin and J. Postel, ``Multipurpose Internet Mail
1389 Extensions (MIME) Part Four: Registration Procedures'', November 1996,
1390 Standards Track (obsolete RFC 1521, 1522, 1590).
1391 @end quotation
1392
1393
1394
1395 @node RFC 2049, plain text, RFC 2048, Glossary
1396 @subsection RFC 2049
1397 @cindex RFC 2049
1398 @cindex Standards Track
1399
1400
1401 @noindent
1402 [RFC 2049]
1403 @quotation
1404 N. Freed and N. Borenstein, ``Multipurpose Internet Mail Extensions
1405 (MIME) Part Five: Conformance Criteria and Examples'', November 1996,
1406 Standards Track (obsolete RFC 1521, 1522, 1590).
1407 @end quotation
1408
1409
1410
1411 @node plain text, us-ascii, RFC 2049, Glossary
1412 @subsection plain text
1413
1414 A textual data represented by only coded character set (@ref{coded character set}).  It does not have information about font or
1415 typesetting.  (cf. @ref{text/plain})
1416
1417
1418
1419 @node us-ascii,  , plain text, Glossary
1420 @subsection us-ascii
1421 @cindex ASCII
1422 @cindex us-ascii
1423
1424 A MIME charset (@ref{MIME charset}) for primary Latin script mainly
1425 written by English or other languages.@refill
1426
1427 It is a 7bit coded character set (@ref{coded character set}) based on
1428 ISO 2022 (@ref{ISO 2022}), it contains only ASCII (@ref{ASCII}) and code
1429 extension (@ref{code extension}) is not allowed.@refill
1430
1431 It is standard coded character set of Internet mail.  If MIME charset is
1432 not specified, @strong{us-ascii} is used as default.@refill
1433
1434 In addition, @strong{ASCII} of RFC 822 (@ref{RFC 822}) should be
1435 interpreted as us-ascii.
1436
1437
1438 @node Bug report, CVS, Glossary, Appendix
1439 @section How to report bugs
1440 @cindex good bug report
1441
1442 If you write bug-reports and/or suggestions for improvement, please
1443 send them to the tm Mailing List:
1444
1445 @itemize @bullet
1446 @item
1447  Japanese <bug-tm-ja@@chamonix.jaist.ac.jp>
1448 @item
1449  English <bug-tm-en@@chamonix.jaist.ac.jp>
1450 @end itemize
1451
1452
1453 Notice that, we do not welcome bug reports about too old version.  Bugs
1454 in old version might be fixed.  So please try latest version at
1455 first.@refill
1456
1457 You should write @strong{good bug report}.  If you write only ``FLIM
1458 does not work'', we can not find such situations.  At least, you should
1459 write name, type, variants and version of OS, emacs, APEL, FLIM, SEMI
1460 and MUA, and setting.  In addition, if error occurs, to send backtrace
1461 is very important. (cf. @ref{(emacs)Bugs}) @refill
1462
1463 Bug may not appear only your environment, but also in a lot of
1464 environment (otherwise it might not bug).  Therefor if you send mail
1465 to author directly, we must write a lot of mails.  So please send mail
1466 to address for tm bugs instead of author.
1467
1468 Via the tm ML, you can report FLIM bugs, obtain the latest release of
1469 FLIM, and discuss future enhancements to FLIM.  To join the tm ML,
1470 send empty e-mail to:
1471
1472 @itemize @bullet
1473 @item
1474  Japanese <tm-ja-help@@chamonix.jaist.ac.jp>
1475 @item
1476  English  <tm-en-help@@chamonix.jaist.ac.jp>
1477 @end itemize
1478
1479
1480
1481 @node CVS, History, Bug report, Appendix
1482 @section CVS based development
1483
1484 FLIM \e$B$N\e(B file \e$B$O\e(B CVS \e$B$r;H$C$F4IM}$5$l$F$$$^$9!#$3$N$?$a!"0J2<$NJ}K!$G:G\e(B
1485 \e$B?7$N\e(B FLIM \e$B$rF~<j$9$k$3$H$,$G$-$^$9!'\e(B
1486
1487 @example
1488 (0) cvs login
1489
1490     % cvs -d :pserver:anonymous@@chamonix.jaist.ac.jp:/hare/cvs/root \
1491         login
1492
1493     CVS password: [CR] # NULL string
1494
1495 (1) checkout
1496
1497     % cvs -d :pserver:anonymous@@chamonix.jaist.ac.jp:/hare/cvs/root \
1498         checkout [-r TAG] flim
1499 @end example
1500
1501
1502 CVS \e$B$rMQ$$$?3+H/$K;22C$7$?$$J}$O\e(B
1503
1504 @itemize @bullet
1505 @item
1506  <cvs@@chamonix.jaist.ac.jp>
1507 @end itemize
1508
1509 @noindent
1510 \e$B$^$G!"\e(Baccount \e$BL>$H\e(B UNIX \e$B$N\e(B passwd \e$B$HF1$87A<0$N\e(B crypt \e$B2=$5$l$?\e(B password
1511 \e$B$r1h$($F8fO"Mm$/$@$5$$!#\e(B
1512
1513
1514 @node History,  , CVS, Appendix
1515 @section History of FLIM
1516
1517 FLIM \e$B$N\e(B code \e$B$N:G8E$NItJ,$O\e(B \e$B1]JB\e(B \e$B;LCR\e(B \e$B;a$,=q$$$?\e(B @file{mime.el}\e$B$K5/8;$7\e(B
1518 \e$B$^$9!#$3$N>.$5$J\e(B program \e$B$O\e(B Nemacs \e$B$GF0:n$9$k\e(B iso-2022-jp \e$B$N\e(B B-encoding 
1519 \e$B@lMQ$N\e(B encoded-word \e$B$NI|9f2=%W%m%0%i%`$G$7$?!#\e(B@refill
1520
1521 \e$B$=$N8e!"<i2,\e(B \e$BCNI'\e(B \e$B$O\e(B @file{mime.el} \e$B$r85$K\e(B@file{tiny-mime.el} \e$B$H$$$&%W%m\e(B
1522 \e$B%0%i%`$r=q$-$^$9!#$3$l$O!"\e(BNemacs \e$B$H\e(B Mule \e$B$GF0:n$9$k\e(B encoded-word \e$B$NId9f\e(B
1523 \e$B2=!&I|9f2=%W%m%0%i%`$G$7$?!#\e(B@file{tiny-mime.el} \e$B$O\e(B B-encoding \e$B$@$1$G$J$/\e(B 
1524 Q-encoding \e$B$b\e(Bsupport \e$B$7!"$^$?!"\e(BMULE \e$B$G07$&$3$H$,$G$-$k$5$^$6$^$J\e(B MIME
1525 charset (@ref{MIME charset}) \e$B$rF1;~$K;H$&$3$H$,$G$-$^$7$?!#$3$N;~!"\e(B
1526 Nemacs \e$B$H\e(B Mule \e$B$NAPJ}$r\e(B support \e$B$9$k$?$a$KMQ$$$i$l$?%F%/%K%C%/$O8e$K\e(B emu
1527 package \e$B$K$^$H$a$i$l$^$9!#\e(B@refill
1528
1529 \e$B$3$N:"!"<i2,\e(B \e$BCNI'\e(B \e$B$O\e(B @file{tiny-mime.el} \e$B$r$5$^$6$^$J\e(B MUA \e$B$G;H$&$?$a$N@_\e(B
1530 \e$BDj=8$bG[I[$7$F$$$^$7$?$,!"$=$l$i$O8e$K\e(B@file{tiny-mime.el} \e$B$H$H$b$K#1$D$N\e(B 
1531 package \e$B$K$^$H$a$i$l!"\e(Btm \e$B$H$$$&L>A0$GG[I[$5$l$^$9!#\e(B@refill
1532
1533 \e$B<i2,\e(B \e$BCNI'\e(B \e$B$O$d$,$F!"\e(BMIME message \e$B$r1\Mw$9$k$?$a$N%W%m%0%i%`$G$"$k\e(B
1534 @file{tm-body.el} \e$B$r=q$-$^$9!#$3$l$O!"$9$0$K\e(B@file{tm-view.el} \e$B$H$$$&L>A0\e(B
1535 \e$B$KJQ$o$j$^$7$?$,!"$d$,$F!"$3$l$,\e(B@file{tiny-mime.el} \e$B$KBe$o$C$F!"\e(Btm \e$B$NCf\e(B
1536 \e$B3K$H$J$j$^$9!#\e(B@refill
1537
1538 @file{tm-view.el} \e$B$OEvA3!"\e(BContent-Transfer-Encoding \e$B$r07$&I,MW$,$"$j$^$9!#\e(B
1539 \e$B$3$NL\E*$N$?$a$K!"\e(BMEL \e$B$,@0Hw$5$l$O$8$a$^$7$?!#\e(BBase64 \e$B$K4X$7$F$O\e(B 
1540 @file{tiny-mime.el} \e$B$N\e(B code \e$B$,0\$5$l!"$^$?!"?7$?$K\e(BQuoted-Printable \e$B$N\e(B 
1541 code \e$B$,DI2C$5$l$^$7$?!#$3$l$i$,\e(B@file{mel-b.el} \e$B$H\e(B @file{mel-q.el} \e$B$K$J$j\e(B
1542 \e$B$^$7$?!#\e(B@refill
1543
1544 \e$B$^$?!"8e$K!"<i2,\e(B \e$BCNI'\e(B \e$B$K$h$C$F\e(B uuencode \e$BMQ$N\e(B @file{mel-u.el} \e$B$,DI2C$5$l!"\e(B
1545 \e$B$=$N8e$K!">.NS\e(B \e$B=$J?\e(B \e$B;a$K$h$C$F\e(B x-gzip64 \e$BMQ$N\e(B@file{mel-g.el} \e$B$,DI2C$5$l$^\e(B
1546 \e$B$7$?!#\e(B@refill
1547
1548 tm \e$B$G$O8e$K!"<i2,\e(B \e$BCNI'\e(B \e$B$K$h$C$F\e(B @file{tiny-mime.el} \e$B$N:F<BAu$,9T$o$l!"$3\e(B
1549 \e$B$N2aDx$G!"\e(BSTD 11 \e$B$N\e(B parser \e$B$,=q$+$l$^$7$?!#$3$l$O!"8=:_$N\e(B 
1550 @file{std11.el} \e$B$KEv$?$j$^$9!#$^$?!"$3$N2aDx$G\e(B @file{tiny-mime.el} \e$B$OI|\e(B
1551 \e$B9f2=$r9T$&\e(B @file{tm-ew-d.el} \e$B$HId9f2=$r9T$&\e(B @file{tm-ew-e.el} \e$B$KJ,$1$i$l\e(B
1552 \e$B$^$7$?!#$3$NN><T$,8=:_$N\e(B @file{eword-decode.el} \e$B$H\e(B 
1553 @file{eword-encode.el} \e$B$N@hAD$KEv$?$j$^$9!#\e(B@refill
1554
1555 \e$B8e$K!"<i2,\e(B \e$BCNI'\e(B \e$B$i$K$h$C$F\e(B tm \e$B$NA4LL=q$-49$(:n6H$,9T$o$l!"$3$N2aDx$G!"\e(Btm 
1556 \e$B$O\e(B APEL, MEL, SEMI, EMH, RMAIL-MIME, Gnus-MIME \e$B$J$I$KJ,$1$i$l$^$7$?!#$3\e(B
1557 \e$B$N$&$A$N\e(B MEL \e$B$,\e(B FLIM \e$B$ND>@\$N@hAD$KEv$?$j$^$9!#\e(B@refill
1558
1559 \e$B8e$K!"\e(BAPEL \e$B$+$i\e(B @file{std11.el} \e$B$,0\$5$l!"$^$?!"\e(B@file{mailcap.el},
1560 @file{eword-decode.el} \e$B$*$h$S\e(B @file{eword-encode.el} \e$B$,\e(B SEMI \e$B$+$i0\$5$l!"\e(B
1561 package \e$B$NL>A0$,\e(B FLIM\e$B$H$J$j$^$9!#\e(B@refill
1562
1563 \e$B$3$ND>A0$+$iEDCf\e(B \e$BE/\e(B \e$B;a$,$h$j\e(B RFC \e$B$KCi<B$J<BAu$r=q$-;O$a!"$3$l$O!"8=:_!"\e(B
1564 FLIM \e$B$N;^$G$"$k\e(B ``FLIM-FLAM'' \e$B$H$J$C$F$$$^$9!#\e(B
1565
1566
1567 @node Concept Index, Function Index, Appendix, Top
1568 @chapter Concept Index
1569
1570 @printindex cp
1571
1572 @node Function Index, Variable Index, Concept Index, Top
1573 @chapter Function Index
1574
1575 @printindex fn
1576
1577 @node Variable Index,  , Function Index, Top
1578 @chapter Variable Index
1579
1580 @printindex vr
1581 @bye