# HG changeset patch # User Gerd Moellmann # Date 988635419 0 # Node ID cd2d6781a5f826e29c0a69e047dcd59e704bc937 # Parent 753c77b1d8cb0ed45042d77fbb97eff142fe186f (rmail-message-regexp-p): Yet another fix. diff -r 753c77b1d8cb -r cd2d6781a5f8 lisp/mail/rmail.el --- a/lisp/mail/rmail.el Sun Apr 29 10:11:11 2001 +0000 +++ b/lisp/mail/rmail.el Mon Apr 30 12:56:59 2001 +0000 @@ -2507,15 +2507,18 @@ (forward-line 2) ;; If there's a Summary-line in the (otherwise empty) ;; header, we didn't yet get past the EOOH line. - (if (looking-at "^\\*\\*\\* EOOH \\*\\*\\*\n") - (forward-line 1)) + (when (looking-at "^\\*\\*\\* EOOH \\*\\*\\*\n") + (forward-line 1)) (setq beg (point)) (narrow-to-region (point) end)) - (rfc822-goto-eoh) + (progn + (rfc822-goto-eoh) + (setq end (point))) (setq beg (point)) - (search-forward "\n*** EOOH ***\n" end t)) + (search-forward "\n*** EOOH ***\n" end t) + (setq end (1+ (match-beginning 0))))) (goto-char beg) - (re-search-forward regexp end t))))) + (re-search-forward regexp end t)))) (defvar rmail-search-last-regexp nil) (defun rmail-search (regexp &optional n)