1 FLIM (Faithful Library about Internet Message) API
7 Each function is described by following notation:
9 [Function] NAME-OF-FUNCTION (SIGNATURE)
13 Each inline function is described by following notation:
15 [Inline function] NAME-OF-FUNCTION (SIGNATURE)
19 Each macro is described by following notation:
21 [Macro] NAME-OF-MACRO (SIGNATURE)
25 Each variable is described by following notation:
27 [Variable] NAME-OF-VARIABLE
31 ILEVEL specifies implementation level:
33 Required: Must implement
34 Suggest: Should implement
37 ULEVEL specifies implementation level:
40 Not Suggest: Should not use
41 Obsolete: Should not use (historical)
51 ** MIME-Entity Creation
53 [Function] mime-open-entity (type location)
54 Open an entity and return it.
56 TYPE is representation-type.
58 LOCATION is location of entity. Specification of it is depended on
62 (Usage: SEMI 1.14 MIME-View)
65 [Function] mime-parse-buffer (&optional buffer representation-type)
66 Parse BUFFER as a MIME message.
68 If buffer is omitted, it parses current-buffer.
70 [Optional]<Not Suggest>
73 ** MIME-Entity Hierarchy
75 [Function] mime-entity-children (entity)
76 Return list of entities included in the ENTITY.
79 (Usage: SEMI 1.14 MIME-View, MIME-PGP)
82 [Function] mime-entity-parent (entity &optional message)
83 Return mother entity of ENTITY.
85 If MESSAGE is specified, it is regarded as root entity.
88 (Usage: SEMI 1.14 MIME-View, MIME-PGP)
91 [Function] mime-find-root-entity (entity)
92 Return root entity of ENTITY.
97 [Function] mime-root-entity-p (entity &optional message)
98 Return t if ENTITY is root-entity (message).
100 If MESSAGE is specified, it is regarded as root entity.
105 [Function] mime-entity-node-id (entity)
106 Return node-id of ENTITY.
109 (Usage: SEMI 1.14 MIME-View, MIME-PGP)
112 [Function] mime-entity-number (entity)
113 Return entity-number of ENTITY.
116 (Usage: SEMI 1.14 MIME-View, MIME-PGP)
119 ** MIME-Entity Search
121 [Function] mime-find-entity-from-node-id (entity-node-id message)
122 Return entity from ENTITY-NODE-ID in MESSAGE.
127 [Function] mime-find-entity-from-number (entity-number message)
128 Return entity from ENTITY-NUMBER in MESSAGE.
133 [Function] mime-find-entity-from-content-id (cid message)
134 Return entity from CID in MESSAGE.
139 ** MIME-Entity Attributes
141 [Function] mime-entity-content-type (entity)
142 Return content-type of ENTITY.
144 (cf. <** Content-Type>)
147 (Usage: SEMI 1.14 MIME-View)
150 [Inline function] mime-entity-media-type (entity)
151 Return primary media-type of ENTITY.
153 [Suggest]<Not Suggest>
154 (Usage: SEMI 1.14 MIME-View)
157 [Inline function] mime-entity-media-subtype (entity)
158 Return media-subtype of ENTITY.
160 [Suggest]<Not Suggest>
161 (Usage: SEMI 1.14 MIME-View)
164 [Inline function] mime-entity-type/subtype (entity)
165 Return media-type/subtype of ENTITY.
168 (Usage: SEMI 1.14 MIME-W3)
171 [Inline function] mime-entity-parameters (entity)
172 Return parameters of Content-Type of ENTITY.
174 [Suggest]<Not Suggest>
175 (Usage: SEMI 1.14 MIME-View)
178 [Function] mime-entity-set-content-type (entity content-type)
179 Set ENTITY's content-type to CONTENT-TYPE.
181 (cf. <** Content-Type>)
184 (Usage: SEMI 1.14 MIME-View)
187 [Function] mime-entity-content-disposition (entity)
188 Return content-disposition of ENTITY.
190 (cf. <** Content-Disposition>)
193 (Usage: SEMI 1.14 MIME-View)
196 [Function] mime-entity-filename (entity)
197 Return filename of ENTITY.
200 (Usage: SEMI 1.14 MIME-View)
203 [Function] mime-entity-encoding (entity)
204 Return content-transfer-encoding of ENTITY.
206 If the ENTITY does not have valid Content-Transfer-Encoding field,
210 (Usage: SEMI 1.14 MIME-View)
213 [Function] mime-entity-set-encoding (entity encoding)
214 Set ENTITY's content-transfer-encoding to ENCODING.
217 (Usage: SEMI 1.14 MIME-View)
220 [Function] mime-entity-cooked-p (entity)
221 Return non-nil if contents of ENTITY has been already
225 (Usage: SEMI 1.14 MIME-PGP)
228 [Function] mime-entity-name (entity)
229 Return unique name of the ENTITY.
232 (Usage: SEMI 1.14 MIME-View)
235 ** MIME-Entity Header
237 [Function] mime-entity-fetch-field (entity field-name)
238 Return the value of the ENTITY's header field whose type is
241 The results is network representation.
243 If FIELD-NAME field is not found, this function returns nil.
246 (Usage: SEMI 1.14 MIME-View, MIME-BBDB)
249 [Function] mime-entity-read-field (entity field-name)
250 Parse FIELD-NAME field in header of ENTITY, and return the result.
252 Format of result is depended on kind of field. For non-structured
253 field, this function returns string. For structured field, it
254 returns list corresponding with structure of the field.
256 Strings in the result will be converted to internal representation
259 If FIELD-NAME field is not found, this function returns nil.
262 (Usage: SEMI 1.14 MIME-View, MIME-BBDB)
265 ** Text Presentation of MIME-Entity Content
267 [Function] mime-insert-header (entity &optional invisible-fields
269 Insert before point a decoded header of ENTITY.
271 INVISIBLE-FIELDS is list of regexps to match field-name to hide.
272 VISIBLE-FIELDS is list of regexps to match field-name to hide.
274 If a field-name is matched with some elements of INVISIBLE-FIELDS
275 and matched with none of VISIBLE-FIELDS, this function don't insert
278 Each encoded-word in the header is decoded. ``Raw non us-ascii
279 characters'' are also decoded as `default-mime-charset'.
284 [Function] mime-insert-text-content (entity)
285 Insert before point a contents of ENTITY as text entity.
287 Contents of the ENTITY are decoded as MIME charset. If the ENTITY
288 does not have charset parameter of Content-Type field,
289 `default-mime-charset' is used as default value.
294 [Variable] default-mime-charset
295 Symbol to indicate default value of MIME charset.
297 It is used when MIME charset is not specified.
299 It is originally variable of APEL.
304 ** Bytes Representation of MIME-Entity Content
306 [Function] mime-entity-content (entity)
307 Return content of ENTITY as byte sequence (string).
310 (Usage: SEMI 1.14 MIME-View, Postpet)
313 [Function] mime-insert-entity-content (entity)
314 Insert content of ENTITY (byte sequence) at point.
319 [Function] mime-write-entity-content (entity filename)
320 Write content of ENTITY (byte sequence) into FILENAME.
325 ** Network Representation of MIME-Entity
327 [Function] mime-entity-string (entity)
328 Return header and body of ENTITY (string).
330 [Optional]<Not Suggest>
333 [Function] mime-insert-entity (entity)
334 Insert header and body of ENTITY at point.
339 [Function] mime-write-entity (entity filename)
340 Write header and body of ENTITY into FILENAME.
345 [Function] mime-entity-header (entity)
346 Return network representation of ENTITY header (string).
348 [Optional]<Not Suggest>
351 [Function] mime-insert-entity-header (entity)
352 Insert network representation of ENTITY header at point.
354 [Optional]<Not Suggest>
357 [Function] mime-write-entity-header (entity filename)
358 Write network representation of ENTITY header FILENAME.
360 [Optional]<Not Suggest>
363 [Function] mime-entity-body (entity)
364 Return network representation of ENTITY body (string).
366 [Optional]<Not Suggest>
369 [Function] mime-insert-entity-body (entity)
370 Insert network representation of ENTITY body at point.
375 [Function] mime-write-entity-body (entity filename)
376 Write body of ENTITY into FILENAME.
381 * MIME content information
390 [Function] mime-parse-Content-Type (string)
391 Parse STRING as field-body of Content-Type field, and
392 return the result as `mime-content-type' structure.
397 [Function] mime-read-Content-Type ()
398 Read field-body of Content-Type field from current-buffer,
399 and return the parsed result.
401 Format of return value is as same as `mime-parse-Content-Type'.
403 Return `nil' if Content-Type field is not found.
408 [Inline function] mime-content-type-primary-type (content-type)
409 Return primary-type of CONTENT-TYPE.
414 [Inline function] mime-content-type-subtype (content-type)
415 Return subtype of CONTENT-TYPE.
420 [Inline function] mime-content-type-parameter (content-type parameter)
421 Return PARAMETER value of CONTENT-TYPE.
426 [Inline function] mime-content-type-parameters (content-type)
427 Return parameters of CONTENT-TYPE.
432 [Inline function] mime-type/subtype-string (type &optional subtype)
433 Return type/subtype string from TYPE and SUBTYPE.
438 ** Content-Disposition
440 [Function] mime-parse-Content-Disposition (string)
441 Parse STRING as field-body of Content-Disposition field.
446 [Function] mime-read-Content-Disposition ()
447 Read field-body of Content-Disposition field from current-buffer,
448 and return parsed it.
453 [Inline function] mime-content-disposition-type (content-disposition)
454 Return disposition-type of CONTENT-DISPOSITION.
459 [Inline function] mime-content-disposition-parameter
460 (content-disposition parameter)
461 Return PARAMETER value of CONTENT-DISPOSITION.
466 [Inline function] mime-content-disposition-filename (content-disposition)
467 Return filename of CONTENT-DISPOSITION.
472 [Inline function] mime-content-disposition-parameters (content-disposition)
473 Return disposition-parameters of CONTENT-DISPOSITION.
487 [Function] mime-decode-header-in-buffer (&optional code-conversion
489 Decode MIME encoded-words in header fields.
491 If CODE-CONVERSION is nil, it decodes only encoded-words. If it is
492 mime-charset, it decodes non-ASCII bit patterns as the mime-charset.
493 Otherwise it decodes non-ASCII bit patterns as the
494 default-mime-charset.
496 If SEPARATOR is not nil, it is used as header separator.
501 [Function] eword-decode-header (&optional code-conversion separator)
502 As same as `mime-decode-header-in-buffer', q.v.
506 (require 'eword-decode)
508 is necessary to use this function.
510 [Optional]<Obsolete> (Usage: cmail 2.61)
513 [Function] mime-decode-header-in-region (start end
514 &optional code-conversion)
515 Decode MIME encoded-words in region between START and END.
517 If CODE-CONVERSION is nil, it decodes only encoded-words. If it is
518 mime-charset, it decodes non-ASCII bit patterns as the mime-charset.
519 Otherwise it decodes non-ASCII bit patterns as the
520 default-mime-charset.
525 [Function] mime-decode-field-body (field-body field-name
526 &optional mode max-column)
527 Decode FIELD-BODY as FIELD-NAME in MODE, and return the result.
529 Optional argument MODE must be `plain', `wide', `summary' or `nov'.
530 Default mode is `summary'.
532 If MODE is `wide' and MAX-COLUMN is non-nil, the result is folded
535 Non MIME encoded-word part in FILED-BODY is decoded with
536 `default-mime-charset'.
541 [Function] mime-set-field-decoder (field &rest specs)
542 Set decoder of FIELD.
544 SPECS must be like `MODE1 DECODER1 MODE2 DECODER2 ...'.
546 Each mode must be `nil', `plain', `wide', `summary' or `nov'. If
547 mode is `nil', corresponding decoder is set up for every modes.
552 [Macro] mime-find-field-presentation-method (name)
553 Return field-presentation-method from NAME.
555 NAME must be `plain', `wide', `summary' or `nov'.
560 [Function] mime-find-field-decoder (field &optional mode)
561 Return function to decode field-body of FIELD in MODE.
563 Optional argument MODE must be object or name of
564 field-presentation-method. Name of field-presentation-method must
565 be `plain', `wide', `summary' or `nov'. Default value of MODE is
571 [Function] mime-update-field-decoder-cache (field mode &optional function)
572 Update field decoder cache `mime-field-decoder-cache'.
579 [Function] mime-encode-header-in-buffer (&optional code-conversion)
580 Encode header fields to network representation, such as MIME
583 It refer variable `mime-field-encoding-method-alist'.
588 [Function] mime-encode-field-body (field-body field-name)
589 Encode FIELD-BODY as FIELD-NAME, and return the result.
591 A lexical token includes non-ASCII character is encoded as MIME
592 encoded-word. ASCII token is not encoded.
597 * Content-Transfer-Encoding
606 [Variable] mime-encoding-list
607 List of Content-Transfer-Encoding. Each encoding must be string.
612 [Function] mime-encoding-list (&optional service)
613 Return list of Content-Transfer-Encoding.
615 If SERVICE is specified, it returns available list of
616 Content-Transfer-Encoding for it.
621 [Function] mime-encoding-alist (&optional service)
622 Return table of Content-Transfer-Encoding for completion.
629 [Function] mime-decode-string (string encoding)
630 Decode STRING using ENCODING.
632 ENCODING must be string. If ENCODING is found in
633 `mime-encoding-list', this function decodes the STRING by its value.
638 [Function] mime-encode-string (string encoding)
639 Encode STRING using ENCODING.
641 ENCODING must be string.
646 [Function] base64-decode-string (STRING)
647 Base64-decode STRING and return the result.
652 [Function] base64-encode-string (STRING &optional NO-LINE-BREAK)
653 Base64-encode STRING and return the result.
655 Optional second argument NO-LINE-BREAK means do not break long lines
663 [Command] mime-write-decoded-region (start end filename encoding)
664 Decode and write current region encoded by ENCODING into FILENAME.
666 START and END are buffer positions.
671 [Command] mime-insert-encoded-file (filename encoding)
672 Insert file FILENAME encoded by ENCODING format.
677 [Command] 7bit-write-decoded-region (start end filename)
678 Decode and write current region encoded by "7bit" into FILENAME.
680 START and END are buffer positions.
685 [Command] 7bit-insert-encoded-file (filename)
686 Insert file FILENAME encoded by "7bit" format.
691 [Command] 8bit-write-decoded-region (start end filename)
692 Decode and write current region encoded by "8bit" into FILENAME.
694 START and END are buffer positions.
699 [Command] 8bit-insert-encoded-file (filename)
700 Insert file FILENAME encoded by "8bit" format.
705 [Command] binary-write-decoded-region (start end filename)
706 Decode and write current region encoded by "binary" into FILENAME.
708 START and END are buffer positions.
713 [Command] binary-insert-encoded-file (filename)
714 Insert file FILENAME encoded by "binary" format.
719 [Command] base64-write-decoded-region (start end filename)
720 Decode and write current region encoded by "base64" into FILENAME.
722 START and END are buffer positions.
727 [Command] base64-insert-encoded-file (filename)
728 Insert file FILENAME encoded by "base64" format.
733 [Command] quoted-printable-write-decoded-region (start end filename)
734 Decode and write current region encoded by "quoted-printable" into
737 START and END are buffer positions.
742 [Command] quoted-printable-insert-encoded-file (filename)
743 Insert file FILENAME encoded by "quoted-printable" format.
750 [Command] mime-decode-region (start end encoding)
751 Decode region START to END of current buffer using ENCODING.
753 ENCODING must be string.
755 [Suggest]<Not Suggest>
758 [Command] mime-encode-region (start end encoding)
759 Encode region START to END of current buffer using ENCODING.
761 ENCODING must be string.
763 [Suggest]<Not Suggest>
766 [Command] base64-decode-region (BEG END)
767 Base64-decode the region between BEG and END.
769 Return the length of the decoded text.
771 If the region can't be decoded, return nil and don't modify the
774 [Suggest]<Not Suggest>
777 [Command] base64-encode-region (BEG END &optional NO-LINE-BREAK)
778 Base64-encode the region between BEG and END.
780 Return the length of the encoded text.
782 Optional third argument NO-LINE-BREAK means do not break long lines
785 [Suggest]<Not Suggest>
790 [Function] encoded-text-decode-string (string encoding)
791 Decode STRING as encoded-text using ENCODING.
793 ENCODING must be string.
798 [Function] encoded-text-encode-string (string encoding &optional mode)
799 Encode STRING as encoded-text using ENCODING.
801 ENCODING must be string.
803 MODE allows `text', `comment', `phrase' or nil. Default value is
809 [Function] base64-encoded-length (string)
810 Return length of B-encoded STRING.
815 [Function] Q-encoded-text-length (string &optional mode)
816 Return length of Q-encoded STRING.
818 MODE allows `text', `comment', `phrase' or nil. Default value is
833 [Function] mime-parse-mailcap-buffer (&optional buffer order)
834 Parse BUFFER as a mailcap, and return the result.
836 If optional argument ORDER is a function, result is sorted by it.
837 If optional argument ORDER is not specified, result is sorted
838 original order. Otherwise result is not sorted.
843 [Variable] mime-mailcap-file
844 File name of user's mailcap file.
846 [Required]<Suggest> (default value may be "~/.mailcap")
849 [Function] mime-parse-mailcap-file (&optional filename order)
850 Parse FILENAME as a mailcap, and return the result.
852 If optional argument ORDER is a function, result is sorted by it.
853 If optional argument ORDER is not specified, result is sorted
854 original order. Otherwise result is not sorted.
861 [Function] mime-format-mailcap-command (mtext situation)
862 Return formated command string from MTEXT and SITUATION.
864 MTEXT is a command text of mailcap specification, such as
867 SITUATION is an association-list about information of entity. Its
870 'type primary media-type
871 'subtype media-subtype
873 STRING parameter of Content-Type field
887 [Variable] mime-field-parser-alist
888 Alist to specify field parser.
893 [Function] mime-parse-msg-id (tokens)
894 Parse TOKENS as msg-id of Content-Id or Message-Id field.
899 [Function] mime-uri-parse-cid (string)
900 Parse STRING as cid URI.
905 [Function] mime-parse-Content-Transfer-Encoding (string)
906 Parse STRING as field-body of Content-Transfer-Encoding field.
907 If STRING is not a valid Content-Transfer-Encoding field,
913 [Function] mime-read-Content-Transfer-Encoding ()
914 Read field-body of Content-Transfer-Encoding field from
915 current-buffer, and return it.
929 [Function] std11-narrow-to-header (&optional boundary)
930 Narrow to the message header.
932 If BOUNDARY is not nil, it is used as message header separator.
939 [Function] std11-fetch-field (name)
940 Return the value of the header field NAME.
942 The buffer is expected to be narrowed to just the headers of the
948 [Function] std11-field-body (name &optional boundary)
949 Return the value of the header field NAME.
951 If BOUNDARY is not nil, it is used as message header separator.
956 [Function] std11-unfold-string (string)
957 Unfold STRING as message header field.
964 [Function] std11-lexical-analyze (string &optional analyzer start)
965 Analyze STRING as lexical tokens of STD 11.
972 [Function] std11-address-string (address)
973 Return string of address part from parsed ADDRESS of RFC 822.
978 [Function] std11-full-name-string (address)
979 Return string of full-name part from parsed ADDRESS of RFC 822.
984 [Function] std11-parse-address-string (string)
985 Parse STRING as mail address.
990 [Function] std11-parse-addresses-string (string)
991 Parse STRING as mail address list.
996 [Function] std11-extract-address-components (string)
997 Extract full name and canonical address from STRING.
999 Returns a list of the form (FULL-NAME CANONICAL-ADDRESS). If no
1000 name can be extracted, FULL-NAME will be nil.
1007 [Function] std11-msg-id-string (msg-id)
1008 Return string from parsed MSG-ID of RFC 822.
1013 [Function] std11-parse-msg-id-string (string)
1014 Parse STRING as msg-id.
1019 [Function] std11-parse-msg-ids-string (string)
1020 Parse STRING as `*(phrase / msg-id)'.
1025 [Function] std11-fill-msg-id-list-string (string &optional column)
1026 Fill list of msg-id in STRING, and return the result.
1040 [Function] smtp-send-buffer (sender recipients buffer)
1043 SENDER is an envelope sender address.
1044 RECIPIENTS is a list of envelope recipient addresses.
1045 BUFFER may be a buffer or a buffer name which contains mail message.
1050 [Function] smtp-via-smtp (sender recipients buffer)
1051 Like `smtp-send-buffer', but sucks in any errors.
1053 [Optional]<Not Suggest>