Variable: rmail-mime-save-action

rmail-mime-save-action is a customizable variable defined in rmailmm.el.gz.

Value

nil

Documentation

Action to perform after saving a MIME attachment in Rmail.

The value can be one of the following:

- nil: Do nothing (default).
- visit-file: Visit the saved file in Emacs.
- visit-directory: Visit the file's directory in Dired.
- open-external: Open the file with an external program.
- A function: Call the function with the absolute filename as argument.

Email attachments can be dangerous. When this variable is set to one of the predefined actions, the user will be prompted to confirm the action before it is performed. If you set this variable to a function, it will be called without confirmation. Please exercise caution.

This variable was added, or its default value changed, in Emacs 31.1.

View in manual

Probably introduced at or before Emacs version 31.1.

Source Code

;; Defined in /usr/src/emacs/lisp/mail/rmailmm.el.gz
;;; Buttons

(defcustom rmail-mime-save-action nil
  "Action to perform after saving a MIME attachment in Rmail.
The value can be one of the following:

- nil: Do nothing (default).
- `visit-file': Visit the saved file in Emacs.
- `visit-directory': Visit the file's directory in Dired.
- `open-external': Open the file with an external program.
- A function: Call the function with the absolute filename as argument.

Email attachments can be dangerous.  When this variable is set to one of
the predefined actions, the user will be prompted to confirm the action
before it is performed.  If you set this variable to a function, it will
be called without confirmation.  Please exercise caution."
  :type '(choice (const :tag "Do nothing" nil)
                 (const :tag "Visit file in Emacs" visit-file)
                 (const :tag "Visit directory in Dired" visit-directory)
                 (const :tag "Open with external program" open-external)
                 (function :tag "Custom function"))
  :version "31.1")