| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
message-default-charset
nil, which means ask the user. (This variable
is used only on non-MULE Emacsen. See section `Charset Translation' in Emacs MIME Manual, for details on
the MULE-to-MIME translation process.
message-signature-separator
mail-header-separator
message-directory
message-auto-save-directory
nil, Message won't auto-save. The default is `~/Mail/drafts/'.
message-signature-setup-hook
message-setup-hook
message-header-setup-hook
For instance, if you're running Gnus and wish to insert a `Mail-Copies-To' header in all your news articles and all messages you send to mailing lists, you could do something like the following:
(defun my-message-header-setup-hook ()
(let ((group (or gnus-newsgroup-name "")))
(when (or (message-fetch-field "newsgroups")
(gnus-group-find-parameter group 'to-address)
(gnus-group-find-parameter group 'to-list))
(insert "Mail-Copies-To: never\n"))))
(add-hook 'message-header-setup-hook
'my-message-header-setup-hook)
|
message-send-hook
If you want to add certain headers before sending, you can use the
message-add-header function in this hook. For instance:
(add-hook 'message-send-hook 'my-message-add-content) (defun my-message-add-content () (message-add-header "X-In-No-Sense: Nonsense") (message-add-header "X-Whatever: no")) |
This function won't add the header if the header is already present.
message-send-mail-hook
message-send-news-hook
message-sent-hook
message-cancel-hook
message-mode-syntax-table
message-strip-special-text-properties
message-send-method-alist
Alist of ways to send outgoing messages. Each element has the form
(type predicate function) |
nil.
function is called with one parameter -- the prefix.
((news message-news-p message-send-via-news) (mail message-mail-p message-send-via-mail)) |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |