(search-forward "\n\n" end) ; error if we don't find it
(narrow-to-region start (point)))))
-;;; mbox: ready
(defun rmail-message-recipients-p (msg recipients &optional primary-only)
(save-restriction
(or (string-match recipients (or (mail-fetch-field "To") ""))
(if (not primary-only)
(string-match recipients (or (mail-fetch-field "Cc") ""))))))
-;;; mbox: ready
(defun rmail-message-regexp-p (msg regexp)
"Return t, if for message number MSG, regexp REGEXP matches in the header."
(save-excursion
(rmail-narrow-to-header msg)
(re-search-forward regexp nil t))))
-;;; mbox: ready
(defun rmail-search-message (msg regexp)
"Return non-nil, if for message number MSG, regexp REGEXP matches."
(goto-char (rmail-desc-get-start msg))
(funcall rmail-search-mime-message-function msg regexp)
(re-search-forward regexp (rmail-desc-get-end msg) t)))
-;;; mbox: ready
(defvar rmail-search-last-regexp nil)
(defun rmail-search (regexp &optional n)
"Show message containing next match for REGEXP (but not the current msg).