Function: rmail-mode
rmail-mode is an autoloaded, interactive and byte-compiled function
defined in rmail.el.gz.
Signature
(rmail-mode)
Documentation
Rmail Mode is used by M-x rmail (rmail) for editing Rmail files.
All normal editing commands are turned off. Instead, these commands are available:
. (rmail-beginning-of-message) Move point to front of this message.
/ (rmail-end-of-message) Move point to bottom of this message.
M-x scroll-up (scroll-up) Scroll to next screen of this message.
M-x scroll-down (scroll-down) Scroll to previous screen of this message.
n (rmail-next-undeleted-message) Move to Next non-deleted message.
p (rmail-previous-undeleted-message) Move to Previous non-deleted message.
M-n (rmail-next-message) Move to Next message whether deleted or not.
M-p (rmail-previous-message) Move to Previous message whether deleted or not.
< (rmail-first-message) Move to the first message in Rmail file.
> (rmail-last-message) Move to the last message in Rmail file.
j (rmail-show-message) Jump to message specified by numeric position in file.
M-s (rmail-search) Search for string and show message it is found in.
d (rmail-delete-forward) Delete this message, move to next nondeleted.
C-d (rmail-delete-backward) Delete this message, move to previous nondeleted.
u (rmail-undelete-previous-message) Undelete message. Tries current message, then earlier messages
till a deleted message is found.
e (rmail-edit-current-message) Edit the current message. M-x rmail-cease-edit (rmail-cease-edit) to return to Rmail.
C-c C-d (rmail-epa-decrypt) Decrypt the current message.
x (rmail-expunge) Expunge deleted messages.
s (rmail-expunge-and-save) Expunge and save the file.
q (rmail-quit) Quit Rmail: expunge, save, then switch to another buffer.
C-x C-s (save-buffer) Save without expunging.
g (rmail-get-new-mail) Move new mail from system spool directory into this file.
m (rmail-mail) Mail a message (same as M-x mail-other-window (mail-other-window)).
c (rmail-continue) Continue composing outgoing message started before.
r (rmail-reply) Reply to this message. Like m (rmail-mail) but initializes some fields.
M-m (rmail-retry-failure) Send this message again. Used on a mailer failure message.
f (rmail-forward) Forward this message to another user.
o (rmail-output) Output (append) this message to another mail file.
C-o (rmail-output-as-seen) Output (append) this message to file as it's displayed.
w (rmail-output-body-to-file) Save message body to a file. Default filename comes from Subject line.
i (rmail-input) Input Rmail file. Run Rmail on that file.
a (rmail-add-label) Add label to message. It will be displayed in the mode line.
k (rmail-kill-label) Kill label. Remove a label from current message.
C-M-n (rmail-next-labeled-message) Move to Next message with specified label
(label defaults to last one specified).
Standard labels: filed, unseen, answered, forwarded, deleted.
Any other label is present only if you add it with a.
C-M-p (rmail-previous-labeled-message) Move to Previous message with specified label
h (rmail-summary) Show headers buffer, with a one line summary of each message.
l (rmail-summary-by-labels) Summarize only messages with particular label(s).
C-M-r (rmail-summary-by-recipients) Summarize only messages with particular recipient(s).
C-M-s (rmail-summary-by-regexp) Summarize only messages with particular regexp(s).
C-M-t (rmail-summary-by-topic) Summarize only messages with subject line regexp(s).
t (rmail-toggle-header) Toggle display of complete header.
Probably introduced at or before Emacs version 19.29.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/mail/rmail.el.gz
(defvar rmail-enable-multibyte) ; dynamically bound
;;;###autoload
(defun rmail-mode ()
"Rmail Mode is used by \\<rmail-mode-map>\\[rmail] for editing Rmail files.
All normal editing commands are turned off.
Instead, these commands are available:
\\[rmail-beginning-of-message] Move point to front of this message.
\\[rmail-end-of-message] Move point to bottom of this message.
\\[scroll-up] Scroll to next screen of this message.
\\[scroll-down] Scroll to previous screen of this message.
\\[rmail-next-undeleted-message] Move to Next non-deleted message.
\\[rmail-previous-undeleted-message] Move to Previous non-deleted message.
\\[rmail-next-message] Move to Next message whether deleted or not.
\\[rmail-previous-message] Move to Previous message whether deleted or not.
\\[rmail-first-message] Move to the first message in Rmail file.
\\[rmail-last-message] Move to the last message in Rmail file.
\\[rmail-show-message] Jump to message specified by numeric position in file.
\\[rmail-search] Search for string and show message it is found in.
\\[rmail-delete-forward] Delete this message, move to next nondeleted.
\\[rmail-delete-backward] Delete this message, move to previous nondeleted.
\\[rmail-undelete-previous-message] Undelete message. Tries current message, then earlier messages
till a deleted message is found.
\\[rmail-edit-current-message] Edit the current message. \\[rmail-cease-edit] to return to Rmail.
\\[rmail-epa-decrypt] Decrypt the current message.
\\[rmail-expunge] Expunge deleted messages.
\\[rmail-expunge-and-save] Expunge and save the file.
\\[rmail-quit] Quit Rmail: expunge, save, then switch to another buffer.
\\[save-buffer] Save without expunging.
\\[rmail-get-new-mail] Move new mail from system spool directory into this file.
\\[rmail-mail] Mail a message (same as \\[mail-other-window]).
\\[rmail-continue] Continue composing outgoing message started before.
\\[rmail-reply] Reply to this message. Like \\[rmail-mail] but initializes some fields.
\\[rmail-retry-failure] Send this message again. Used on a mailer failure message.
\\[rmail-forward] Forward this message to another user.
\\[rmail-output] Output (append) this message to another mail file.
\\[rmail-output-as-seen] Output (append) this message to file as it's displayed.
\\[rmail-output-body-to-file] Save message body to a file. Default filename comes from Subject line.
\\[rmail-input] Input Rmail file. Run Rmail on that file.
\\[rmail-add-label] Add label to message. It will be displayed in the mode line.
\\[rmail-kill-label] Kill label. Remove a label from current message.
\\[rmail-next-labeled-message] Move to Next message with specified label
(label defaults to last one specified).
Standard labels: filed, unseen, answered, forwarded, deleted.
Any other label is present only if you add it with \\[rmail-add-label].
\\[rmail-previous-labeled-message] Move to Previous message with specified label
\\[rmail-summary] Show headers buffer, with a one line summary of each message.
\\[rmail-summary-by-labels] Summarize only messages with particular label(s).
\\[rmail-summary-by-recipients] Summarize only messages with particular recipient(s).
\\[rmail-summary-by-regexp] Summarize only messages with particular regexp(s).
\\[rmail-summary-by-topic] Summarize only messages with subject line regexp(s).
\\[rmail-toggle-header] Toggle display of complete header."
(interactive)
(let ((finding-rmail-file (not (eq major-mode 'rmail-mode))))
(rmail-mode-2)
(when (and finding-rmail-file
(null coding-system-for-read))
(let ((rmail-enable-multibyte t))
(rmail-require-mime-maybe)
(rmail-convert-file-maybe)
(goto-char (point-max))
(set-buffer-multibyte t)))
(rmail-set-message-counters)
(rmail-show-message rmail-total-messages)
(when finding-rmail-file
(when rmail-display-summary
(rmail-summary))
(rmail-construct-io-menu))
(run-mode-hooks 'rmail-mode-hook)))