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

index 3379c06..93dca35 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 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-27  Katsumi Yamaoka   <yamaoka@jpl.org>
+
        * WEMI: Version 1.10.1 (Kambara) released.
 
 1998-10-26  MORIOKA Tomohiko  <morioka@jaist.ac.jp>
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)))