2001-03-31 Kenichi Handa <handa@etl.go.jp>
authortomo <tomo>
Fri, 25 May 2001 09:23:55 +0000 (09:23 +0000)
committertomo <tomo>
Fri, 25 May 2001 09:23:55 +0000 (09:23 +0000)
* mail/rmail-mime.el: Set rmail-search-mime-message-function and
rmail-search-mime-header-function when loaded.
(rmail-search-mime-message): Change arguments to MSG, REGEXP, and
LIMIT.

mail/rmail-mime.el

index 2ef09ea..b9bb3cd 100644 (file)
@@ -128,13 +128,13 @@ If the search succeeds, return non-nil.  Otherwise, return nil."
     (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*"))))
@@ -169,7 +169,11 @@ If the search succeeds, return non-nil.  Otherwise, return nil."
      (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