Function: Mh-msg-to-p

Mh-msg-to-p is a byte-compiled function defined in hmh.el.

Signature

(Mh-msg-to-p MAIL-MSG-ID MAIL-FILE)

Documentation

Set current buffer to start of msg with MAIL-MSG-ID in MAIL-FILE.

Returns t if successful, else nil.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hmh.el
(defun Mh-msg-to-p (_mail-msg-id mail-file)
  "Set current buffer to start of msg with MAIL-MSG-ID in MAIL-FILE.
Returns t if successful, else nil."
  (if (not (file-readable-p mail-file))
      nil
    (find-file mail-file)
    (hmail:msg-narrow)
    (goto-char 1)
    t))