From b2b8f8fa96863d46ecade5af278c054de11d1b63 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Fri, 27 Apr 2001 13:00:42 +0000 Subject: [PATCH] (rmail-message-regexp-p): Don't match before headers. --- lisp/mail/rmail.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 8ff2800cda6..5d5a1c494f2 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el @@ -2509,11 +2509,12 @@ or forward if N is negative." ;; header, we didn't yet get past the EOOH line. (if (looking-at "^\\*\\*\\* EOOH \\*\\*\\*\n") (forward-line 1)) + (setq beg (point)) (narrow-to-region (point) end)) (rfc822-goto-eoh) + (setq beg (point)) (search-forward "\n*** EOOH ***\n" end t)) - (narrow-to-region beg (point)) - (goto-char (point-min)) + (goto-char beg) (re-search-forward regexp end t))))) (defvar rmail-search-last-regexp nil) -- 2.39.5