Function: rmail-content-type-boundary

rmail-content-type-boundary is a byte-compiled function defined in undigest.el.gz.

Signature

(rmail-content-type-boundary TYPE)

Documentation

If Content-type is of type TYPE, return its boundary; otherwise, return nil.

Source Code

;; Defined in /usr/src/emacs/lisp/mail/undigest.el.gz
(defun rmail-content-type-boundary (type)
  "If Content-type is of type TYPE, return its boundary; otherwise, return nil."
  (goto-char (point-min))
  (let ((head-end (save-excursion (search-forward "\n\n" nil t) (point))))
    (when (re-search-forward
           (concat "^Content-type: " type ";"
                   "\\s-* boundary=\"?\\([^\";\n]+\\)[\";\n]")
           head-end t)
      (match-string 1))))