aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/mail/rmail.el13
2 files changed, 13 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 88f750384dc..5adfbf3242d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12007-05-14 Eli Zaretskii <eliz@gnu.org>
2
3 * mail/rmail.el (rmail-convert-to-babyl-format): Check
4 content-transfer-encoding _last_, because we need its position in
5 base64-header-field-end.
6
12007-05-14 Juanma Barranquero <lekktu@gmail.com> 72007-05-14 Juanma Barranquero <lekktu@gmail.com>
2 8
3 * files.el (mode-require-final-newline, require-final-newline) 9 * files.el (mode-require-final-newline, require-final-newline)
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index bfdd5048877..13aba1a3fb0 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -1959,12 +1959,13 @@ is non-nil if the user has supplied the password interactively.
1959 (base64-header-field-end 1959 (base64-header-field-end
1960 (save-excursion 1960 (save-excursion
1961 (goto-char start) 1961 (goto-char start)
1962 ;; Don't try to decode non-text data.
1962 (and (re-search-forward 1963 (and (re-search-forward
1963 "^content-transfer-encoding:\\(\n?[\t ]\\)*base64\\(\n?[\t ]\\)*" 1964 "^content-type:\\(\n?[\t ]\\)\\(text\\|message\\)/"
1964 header-end t) 1965 header-end t)
1965 ;; Don't try to decode non-text data. 1966 (goto-char start)
1966 (re-search-forward 1967 (re-search-forward
1967 "^content-type:\\(\n?[\t ]\\)\\(text\\|message\\)/" 1968 "^content-transfer-encoding:\\(\n?[\t ]\\)*base64\\(\n?[\t ]\\)*"
1968 header-end t))))) 1969 header-end t)))))
1969 (if quoted-printable-header-field-end 1970 (if quoted-printable-header-field-end
1970 (save-excursion 1971 (save-excursion
@@ -2066,14 +2067,14 @@ is non-nil if the user has supplied the password interactively.
2066 header-end t))) 2067 header-end t)))
2067 (base64-header-field-end 2068 (base64-header-field-end
2068 (and 2069 (and
2070 ;; Don't decode non-text data.
2069 (save-excursion 2071 (save-excursion
2070 (re-search-forward 2072 (re-search-forward
2071 "^content-transfer-encoding:\\(\n?[\t ]\\)*base64\\(\n?[\t ]\\)*" 2073 "^content-type:\\(\n?[\t ]\\)\\(text\\|message\\)/"
2072 header-end t)) 2074 header-end t))
2073 ;; Don't decode non-text data.
2074 (save-excursion 2075 (save-excursion
2075 (re-search-forward 2076 (re-search-forward
2076 "^content-type:\\(\n?[\t ]\\)\\(text\\|message\\)/" 2077 "^content-transfer-encoding:\\(\n?[\t ]\\)*base64\\(\n?[\t ]\\)*"
2077 header-end t)))) 2078 header-end t))))
2078 (size 2079 (size
2079 ;; Get the numeric value from the Content-Length field. 2080 ;; Get the numeric value from the Content-Length field.