;;; @ Content-Transfer-Encoding
;;;
+;;;###autoload
(defun mime-parse-Content-Transfer-Encoding (string)
"Parse STRING as field-body of Content-Transfer-Encoding field."
(if (string-match "[ \t\n\r]+$" string)
)
(downcase string))
+;;;###autoload
(defun mime-read-Content-Transfer-Encoding (&optional default-encoding)
"Read field-body of Content-Transfer-Encoding field from
current-buffer, and return it.
;;; @ message parser
;;;
-(defalias 'mime-entity-point-min 'mime-entity-header-start)
-(defalias 'mime-entity-point-max 'mime-entity-body-end)
-
-(defsubst mime-entity-media-type (entity)
- (mime-content-type-primary-type (mime-entity-content-type entity)))
-(defsubst mime-entity-media-subtype (entity)
- (mime-content-type-subtype (mime-entity-content-type entity)))
-(defsubst mime-entity-parameters (entity)
- (mime-content-type-parameters (mime-entity-content-type entity)))
-
-(defsubst mime-entity-type/subtype (entity-info)
- (mime-type/subtype-string (mime-entity-media-type entity-info)
- (mime-entity-media-subtype entity-info)))
-
(defun mime-parse-multipart (header-start header-end body-start body-end
content-type content-disposition
encoding node-id)
(nreverse children))
))
+;;;###autoload
(defun mime-parse-message (&optional default-ctl default-encoding node-id)
"Parse current-buffer as a MIME message.
DEFAULT-CTL is used when an entity does not have valid Content-Type
`children', so the `mime-entity' structure become a tree.")
(make-variable-buffer-local 'mime-message-structure)
+;;;###autoload
(defun mime-parse-buffer (&optional buffer)
"Parse BUFFER as a MIME message.
If buffer is omitted, it parses current-buffer."