Function: dired-do-run-mail

dired-do-run-mail is an interactive and byte-compiled function defined in dired-x.el.gz.

Signature

(dired-do-run-mail)

Documentation

Visit the current file as a mailbox, using VM or RMAIL.

Prompt for confirmation first; if the user says yes, call dired-vm if dired-bind-vm is non-nil, dired-rmail otherwise.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/dired-x.el.gz
(defun dired-do-run-mail ()
  "Visit the current file as a mailbox, using VM or RMAIL.
Prompt for confirmation first; if the user says yes, call
`dired-vm' if `dired-bind-vm' is non-nil, `dired-rmail'
otherwise."
  (interactive nil dired-mode)
  (let ((file (dired-get-filename t)))
    (if dired-bind-vm
	(if (y-or-n-p (format-message
		       "Visit `%s' as a mail folder with VM?" file))
	    (dired-vm))
      ;; Read mail folder using rmail.
      (if (y-or-n-p (format-message
		     "Visit `%s' as a mailbox with RMAIL?" file))
	  (dired-rmail)))))