(mime-edit-decode-buffer): Limit search bound for "Content-Transfer-Encoding:".
authoryamaoka <yamaoka>
Tue, 27 Oct 1998 09:41:29 +0000 (09:41 +0000)
committeryamaoka <yamaoka>
Tue, 27 Oct 1998 09:41:29 +0000 (09:41 +0000)
ChangeLog
mime-edit.el

index a2bcd7b..f62535e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+1998-10-27  Katsumi Yamaoka   <yamaoka@jpl.org>
+
+       * mime-edit.el (mime-edit-decode-buffer): Limit search bound for
+       "Content-Transfer-Encoding:".
+
+\f
 1998-10-26  MORIOKA Tomohiko  <morioka@jaist.ac.jp>
 
        * SEMI: Version 1.10.1 (Morimoto) released.
index 709c093..3c38997 100644 (file)
@@ -2657,10 +2657,13 @@ Content-Type: message/partial; id=%s; number=%d; total=%d\n%s\n"
                                          ))))
                                   params "")))
                     encoding
-                    encoded)
+                    encoded
+                    (limit (save-excursion
+                             (if (search-forward "\n\n" nil t)
+                                 (1- (point))))))
                (save-excursion
                  (if (re-search-forward
-                      "Content-Transfer-Encoding:" nil t)
+                      "^Content-Transfer-Encoding:" limit t)
                      (let ((beg (match-beginning 0))
                            (hbeg (match-end 0))
                            (end (std11-field-end)))