(base64-header-field-end
(save-excursion
(goto-char start)
+ ;; Don't try to decode non-text data.
(and (re-search-forward
- "^content-transfer-encoding:\\(\n?[\t ]\\)*base64\\(\n?[\t ]\\)*"
+ "^content-type:\\(\n?[\t ]\\)\\(text\\|message\\)/"
header-end t)
- ;; Don't try to decode non-text data.
+ (goto-char start)
(re-search-forward
- "^content-type:\\(\n?[\t ]\\)\\(text\\|message\\)/"
+ "^content-transfer-encoding:\\(\n?[\t ]\\)*base64\\(\n?[\t ]\\)*"
header-end t)))))
(if quoted-printable-header-field-end
(save-excursion
header-end t)))
(base64-header-field-end
(and
+ ;; Don't decode non-text data.
(save-excursion
(re-search-forward
- "^content-transfer-encoding:\\(\n?[\t ]\\)*base64\\(\n?[\t ]\\)*"
+ "^content-type:\\(\n?[\t ]\\)\\(text\\|message\\)/"
header-end t))
- ;; Don't decode non-text data.
(save-excursion
(re-search-forward
- "^content-type:\\(\n?[\t ]\\)\\(text\\|message\\)/"
+ "^content-transfer-encoding:\\(\n?[\t ]\\)*base64\\(\n?[\t ]\\)*"
header-end t))))
(size
;; Get the numeric value from the Content-Length field.