\1f
File: tm-edit-en.info, Node: Top, Next: Introduction, Prev: (dir), Up: (dir)
-tm-edit 7.90 Reference Manual (English Version)
+tm-edit 7.99 Reference Manual (English Version)
***********************************************
* single-part operations::
* enclosure operation::
* other operations of mime/editor-mode::
+* tag specification for inserted file:: Default media-type or encoding for inserted file
* transfer level::
* header:: Using non-ASCII characters in header
* PGP::
Insert single-part tag indicates text part.
`C-c C-x C-i'
- Insert file as a MIME attachment.
+ Insert file as a MIME attachment. If `C-u' is followed by it, it
+ asks media-type, subtype or encoding even if their default values
+ are specified. (cf. *Note tag specification for inserted file::)
`C-c C-x C-e'
Insert external part.
\1f
-File: tm-edit-en.info, Node: other operations of mime/editor-mode, Next: transfer level, Prev: enclosure operation, Up: Top
+File: tm-edit-en.info, Node: other operations of mime/editor-mode, Next: tag specification for inserted file, Prev: enclosure operation, Up: Top
other operations of mime/editor-mode
************************************
\1f
-File: tm-edit-en.info, Node: transfer level, Next: header, Prev: other operations of mime/editor-mode, Up: Top
+File: tm-edit-en.info, Node: tag specification for inserted file, Next: transfer level, Prev: other operations of mime/editor-mode, Up: Top
+
+Default media-type or encoding for inserted file
+************************************************
+
+When `C-c C-x C-i' (`mime-editor/insert-file') is pressed, tag
+parameters for inserted file, such as media-type or encoding, are
+detected by variable `mime-file-types'.
+
+When `C-u' is followed by it or parameter is not found from the
+variable, it asks from user. (When `C-u' is followed by it, detected
+value is used as default value)
+
+If you want to change default value for file names, please change
+variable `mime-file-types'.
+
+
+ -- Variable: mime-file-types
+
+ Specification of default value of tag for file name of inserted
+ file.
+
+ It is a list of following list:
+
+ (FILE_PAT TYPE SUBTYPE PARAMS ENCODING
+ DISPOSITION_TYPE DISPOSITION_PARAMS)
+
+
+ Each elements of the list are following:
+
+ `FILE_PAT'
+ regular expression of file name
+
+ `TYPE'
+ media type
+
+ `SUBTYPE'
+ media subtype
+
+ `PARAMS'
+ parameters of Content-Type field
+
+ `ENCODING'
+ Content-Transfer-Encoding
+
+ `DISPOSITION_TYPE'
+ disposition-type
+
+ `DISPOSITION_PARAMS'
+ parameters of Content-Disposition field
+
+
+ Example: Specify application/rtf as default media type for `*.rtf'
+
+ (call-after-loaded
+ 'tm-edit
+ (lambda ()
+ (set-alist 'mime-file-types
+ "\\.rtf$"
+ '("application" "rtf" nil nil
+ "attachment" (("filename" . file)))
+ )))
+
+
+
+
+\1f
+File: tm-edit-en.info, Node: transfer level, Next: header, Prev: tag specification for inserted file, Up: Top
transfer level
**************
* mime-editor/transfer-level: transfer level. 33.
* mime-eword/charset-encoding-alist: API about header. 35.
* mime/field-encoding-method-alist: evil setting in header. 21.
+* mime-file-types: tag specification for inserted file. 19.