]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve previous change.
authorKarl Heuer <kwzh@gnu.org>
Tue, 18 Nov 1997 21:22:28 +0000 (21:22 +0000)
committerKarl Heuer <kwzh@gnu.org>
Tue, 18 Nov 1997 21:22:28 +0000 (21:22 +0000)
lisp/mail/rmail.el

index 4bad2115fb3253e43b084ab897c9a966fe62cae4..4ca92b132754a577e8af6ba17c7ab1079fcab5b7 100644 (file)
@@ -1433,11 +1433,8 @@ Optional DEFAULT is password to start with."
                      (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 @@ Optional DEFAULT is password to start with."
                       ;; 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