Variable: mml-content-disposition-alist
mml-content-disposition-alist is a customizable variable defined in
mml.el.gz.
Value
((text
(rtf . "attachment")
(t . "inline"))
(t . "attachment"))
Documentation
Alist of MIME types or regexps matching file names and default dispositions.
Each element should be one of the following three forms:
(REGEXP . DISPOSITION)
(SUPERTYPE (SUBTYPE . DISPOSITION) (SUBTYPE . DISPOSITION)...)
(TYPE . DISPOSITION)
Where REGEXP is a string which matches the file name (if any) of an attachment, SUPERTYPE, SUBTYPE and TYPE should be symbols which are a MIME supertype (e.g., text), a MIME subtype (e.g., plain) and a MIME type (e.g., text/plain) respectively, and DISPOSITION should be either the string "attachment" or the string "inline". The value t for SUPERTYPE, SUBTYPE or TYPE matches any of those types. The first match found will be used.
This variable was added, or its default value changed, in Emacs 23.1.
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/mml.el.gz
(defcustom mml-content-disposition-alist
'((text (rtf . "attachment") (t . "inline"))
(t . "attachment"))
"Alist of MIME types or regexps matching file names and default dispositions.
Each element should be one of the following three forms:
(REGEXP . DISPOSITION)
(SUPERTYPE (SUBTYPE . DISPOSITION) (SUBTYPE . DISPOSITION)...)
(TYPE . DISPOSITION)
Where REGEXP is a string which matches the file name (if any) of an
attachment, SUPERTYPE, SUBTYPE and TYPE should be symbols which are a
MIME supertype (e.g., text), a MIME subtype (e.g., plain) and a MIME
type (e.g., text/plain) respectively, and DISPOSITION should be either
the string \"attachment\" or the string \"inline\". The value t for
SUPERTYPE, SUBTYPE or TYPE matches any of those types. The first
match found will be used."
:version "23.1" ;; No Gnus
:type (let ((dispositions '(radio :format "DISPOSITION: %v"
:value "attachment"
(const :format "%v " "attachment")
(const :format "%v\n" "inline"))))
`(repeat
:offset 0
(choice :format "%[Value Menu%]%v"
(cons :tag "(REGEXP . DISPOSITION)" :extra-offset 4
(regexp :tag "REGEXP" :value ".*")
,dispositions)
(cons :tag "(SUPERTYPE (SUBTYPE . DISPOSITION)...)"
:indent 0
(symbol :tag " SUPERTYPE" :value text)
(repeat :format "%v%i\n" :offset 0 :extra-offset 4
(cons :format "%v" :extra-offset 5
(symbol :tag "SUBTYPE" :value t)
,dispositions)))
(cons :tag "(TYPE . DISPOSITION)" :extra-offset 4
(symbol :tag "TYPE" :value t)
,dispositions))))
:group 'message)