]> git.eshelyaron.com Git - emacs.git/commitdiff
(rmail-convert-to-babyl-format): Check content-transfer-encoding _last_,
authorEli Zaretskii <eliz@gnu.org>
Mon, 14 May 2007 19:49:26 +0000 (19:49 +0000)
committerEli Zaretskii <eliz@gnu.org>
Mon, 14 May 2007 19:49:26 +0000 (19:49 +0000)
because it's its position that we need in base64-header-field-end.

lisp/ChangeLog
lisp/mail/rmail.el

index 88f750384dcdc02fc2c5fc65570fd603c856ea91..5adfbf3242d085c33c7e5063f9aa530e556acd81 100644 (file)
@@ -1,3 +1,9 @@
+2007-05-14  Eli Zaretskii  <eliz@gnu.org>
+
+       * mail/rmail.el (rmail-convert-to-babyl-format): Check
+       content-transfer-encoding _last_, because we need its position in
+       base64-header-field-end.
+
 2007-05-14  Juanma Barranquero  <lekktu@gmail.com>
 
        * files.el (mode-require-final-newline, require-final-newline)
index bfdd50488772965b5bb63f1573cec0a3ff12ccb7..13aba1a3fb07caddaf3a5ee90367cc040b1d4bd6 100644 (file)
@@ -1959,12 +1959,13 @@ is non-nil if the user has supplied the password interactively.
                        (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
@@ -2066,14 +2067,14 @@ is non-nil if the user has supplied the password interactively.
                          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.