Function: mm-archive-list-files
mm-archive-list-files is a byte-compiled function defined in
mm-archive.el.gz.
Signature
(mm-archive-list-files FILES)
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/mm-archive.el.gz
(defun mm-archive-list-files (files)
(let ((handles nil)
type disposition)
(dolist (file files)
(with-temp-buffer
(when (string-match "\\.\\([^.]+\\)$" file)
(setq type (mailcap-extension-to-mime (match-string 1 file))))
(unless type
(setq type "application/octet-stream"))
(setq disposition
(if (string-match "^image/\\|^text/" type)
"inline"
"attachment"))
(insert (format "Content-type: %s\n" type))
(insert "Content-Transfer-Encoding: 8bit\n\n")
(insert-file-contents file)
(push
(mm-make-handle (mm-copy-to-buffer)
(list type)
'8bit nil
`(,disposition (filename . ,file))
nil nil nil)
handles)))
handles))