When you edit a message that you want to send (called a draft in this case), the mode used is MH-Letter. This mode provides several commands in addition to the normal Emacs editing commands to help you edit your draft. These can also be found in the ‘Letter’ menu.
Perform completion or insert space (mh-letter-complete-or-space
).
Perform completion on header field or word preceding point
(mh-letter-complete
).
Cycle to next field (mh-letter-next-header-field-or-indent
).
Cycle to the previous header field
(mh-letter-previous-header-field
).
Insert fields specified by the given identity
(mh-insert-identity
). See Identities.
Compose MIME message from MH-style directives
(mh-mh-to-mime
).
Add tag to encrypt the message (mh-mml-secure-message-encrypt
).
Add tag to include anonymous ftp reference to a file
(mh-mh-compose-anon-ftp
).
Add tag to include a file such as an image or sound
(mh-compose-insertion
).
Add tag to include anonymous ftp reference to a compressed tar file
(mh-mh-compose-external-compressed-tar
).
Add tag to refer to a remote file
(mh-mh-compose-external-type
).
Add tag to encrypt the message (mh-mml-secure-message-encrypt
).
Add tag to encrypt and sign the message
(mh-mml-secure-message-signencrypt
).
Add tag to encrypt and sign the message
(mh-mml-secure-message-signencrypt
).
Quit editing and delete draft message (mh-fully-kill-draft
).
Toggle display of header field at point
(mh-letter-toggle-header-field-display
).
Verify recipients, showing expansion of any aliases
(mh-check-whom
).
Insert the current message into the draft buffer
(mh-yank-cur-msg
).
Insert custom fields if recipient is found in
mh-auto-fields-list
(mh-insert-auto-fields
).
See Identities.
Several options from the ‘mh-letter’ customization group are used while editing a draft.
mh-compose-insertion
¶Type of MIME message tags in messages (default: ‘MML’ if available; otherwise ‘MH’).
mh-compose-skipped-header-fields
¶List of header fields to skip over when navigating in draft (default:
'("From"
"Organization"
"References"
"In-Reply-To"
"X-Face"
"Face"
"X-Image-URL"
"X-Mailer")
.
mh-compose-space-does-completion-flag
¶On means SPC does completion in message header (default: ‘off’).
mh-delete-yanked-msg-window-flag
¶On means delete any window displaying the message (default: ‘off’).
mh-extract-from-attribution-verb
¶Verb to use for attribution when a message is yanked by C-c C-y
(default: "wrote:"
).
mh-ins-buf-prefix
¶String to put before each line of a yanked or inserted message
(default: "> "
).
mh-letter-complete-function
¶Function to call when completing outside of address or folder fields
(default: ispell-complete-word
).
mh-letter-fill-column
¶Fill column to use in MH-Letter mode (default: 72).
mh-mml-method-default
¶Default method to use in security tags (default: ‘PGP (MIME)’ if support for it is available; otherwise ‘None’).
mh-signature-file-name
¶Source of user’s signature (default: "~/.signature"
).
mh-signature-separator-flag
¶On means a signature separator should be inserted (default: ‘on’).
mh-x-face-file
¶File containing X-Face or Face header field to insert in outgoing mail.
(default: "~/.face"
).
mh-yank-behavior
¶Controls which part of a message is yanked by C-c C-y (default: ‘Body With Attribution’).
The following hooks are available.
mail-citation-hook
¶Hook for modifying a citation just inserted in the mail buffer
(default: nil
).
mh-before-send-letter-hook
¶Hook run at the beginning of the C-c C-c command (default: ‘nil’).
mh-mh-to-mime-hook
¶Hook run on the formatted letter by C-c C-e (default: ‘nil’).
mh-insert-signature-hook
¶Hook run by C-c C-s after signature has been inserted (default:
nil
).
The following face is available.
mh-letter-header-field
¶Editable header field value face in draft buffers.
The commands and options introduced here are explained in more detail in the following sections.