From 684523453fb8f632cea17ebe849cd2b89c79878d Mon Sep 17 00:00:00 2001 From: yamaoka Date: Tue, 27 Oct 1998 09:41:29 +0000 Subject: [PATCH] (mime-edit-decode-buffer): Limit search bound for "Content-Transfer-Encoding:". --- ChangeLog | 6 ++++++ mime-edit.el | 7 +++++-- 2 files changed, 11 insertions(+), 2 deletions(-) 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))) -- 1.7.10.4