(prog1 (re-search-forward regexp nil t)
(kill-buffer " *RMAIL-temp-VIEW*"))))
-(defun rmail-search-mime-header (msg beg end regexp)
+(defun rmail-search-mime-header (msg regexp limit)
"Search the message header of number MSG for REGEXP.
+The current point is the beginninf of header,
+and LIMIT is the end position of header.
If the search succeeds, return non-nil. Otherwise, return nil."
(save-excursion
- (rmail-decode-header " *RMAIL-temp-VIEW*"
- (current-buffer)
- beg end)
+ (rmail-decode-header " *RMAIL-temp-VIEW*" (current-buffer) (point) end)
(goto-char (point-min))
(prog1 (re-search-forward regexp nil t)
(kill-buffer " *RMAIL-temp-VIEW*"))))
(setq rmail-show-mime-function
(function rmail-show-mime-message)
rmail-insert-mime-forwarded-message-function
- (function rmail-insert-mime-forwarded-message))
+ (function rmail-insert-mime-forwarded-message)
+ rmail-search-mime-message-function
+ (function rmail-search-mime-message)
+ rmail-search-mime-header-function
+ (function rmail-search-mime-header))
(unless rmail-view-mode-map
(setq rmail-view-mode-map (mime-view-define-keymap rmail-mode-map))
(define-key rmail-view-mode-map