Mercurial > emacs
changeset 20274:faa32765fb8f
Improve previous change.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Tue, 18 Nov 1997 21:22:28 +0000 |
parents | f451d46a8c68 |
children | 0e102e83c51d |
files | lisp/mail/rmail.el |
diffstat | 1 files changed, 2 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/mail/rmail.el Tue Nov 18 21:13:57 1997 +0000 +++ b/lisp/mail/rmail.el Tue Nov 18 21:22:28 1997 +0000 @@ -1433,11 +1433,8 @@ (case-fold-search t) (quoted-printable-header-field-end (save-excursion - ;; Back up to end of previous line, in case the - ;; Content-Transfer-Encoding field comes first. - (forward-char -1) (re-search-forward - "\ncontent-transfer-encoding\\(\n?[\t ]\\)*:\\(\n?[\t ]\\)*quoted-printable\\(\n?[\t ]\\)*" + "^content-transfer-encoding:\\(\n?[\t ]\\)*quoted-printable\\(\n?[\t ]\\)*" header-end t))) (size ;; Get the numeric value from the Content-Length field. @@ -1488,7 +1485,7 @@ ;; Change "quoted-printable" to "8bit", ;; to reflect the decoding we just did. (goto-char quoted-printable-header-field-end) - (zap-to-char -1 ?:) + (delete-region (point) (search-backward ":")) (insert ": 8bit")))) (save-excursion