From: yamaoka Date: Tue, 27 Oct 1998 09:47:06 +0000 (+0000) Subject: (mime-edit-decode-buffer): Limit search bound for "Content-Transfer-Encoding:". X-Git-Tag: wemi-1_10_2~3 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=35c0ae1b1b628cf2c92ce75417edf4da4ead550b;p=elisp%2Fsemi.git (mime-edit-decode-buffer): Limit search bound for "Content-Transfer-Encoding:". --- diff --git a/ChangeLog b/ChangeLog index 3379c06..93dca35 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 1998-10-27 Katsumi Yamaoka + * mime-edit.el (mime-edit-decode-buffer): Limit search bound for + "Content-Transfer-Encoding:". + + +1998-10-27 Katsumi Yamaoka + * WEMI: Version 1.10.1 (Kambara) released. 1998-10-26 MORIOKA Tomohiko diff --git a/mime-edit.el b/mime-edit.el index 709c093..3c38997 100644 --- a/mime-edit.el +++ b/mime-edit.el @@ -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)))