From: yamaoka Date: Tue, 27 Oct 1998 09:41:29 +0000 (+0000) Subject: (mime-edit-decode-buffer): Limit search bound for "Content-Transfer-Encoding:". X-Git-Tag: semi-1_10-199811302358~7 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=684523453fb8f632cea17ebe849cd2b89c79878d;p=elisp%2Fsemi.git (mime-edit-decode-buffer): Limit search bound for "Content-Transfer-Encoding:". --- diff --git a/ChangeLog b/ChangeLog index a2bcd7b..f62535e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +1998-10-27 Katsumi Yamaoka + + * mime-edit.el (mime-edit-decode-buffer): Limit search bound for + "Content-Transfer-Encoding:". + + 1998-10-26 MORIOKA Tomohiko * SEMI: Version 1.10.1 (Morimoto) released. 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)))