| [Top] | [Contents] | [Index] | [ ? ] |
All message composition (both mail and news) takes place in Message mode buffers.
1. Interface Setting up message buffers. 2. Commands Commands you can execute in message mode buffers. 3. Variables Customizing the message buffers. 4. Index Variable, function and concept index. 5. Key Index List of Message mode keys.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
When a program (or a person) wants to respond to a message -- reply,
follow up, forward, cancel -- the program (or person) should just put
point in the buffer where the message is and call the required command.
Message will then pop up a new message mode buffer with
appropriate headers filled out, and the user can edit the message before
sending it.
1.1 New Mail Message Editing a brand new mail message. 1.2 New News Message Editing a brand new news message. 1.3 Reply Replying via mail. 1.4 Wide Reply Responding to all people via mail. 1.5 Followup Following up via news. 1.6 Canceling News Canceling a news article. 1.7 Superseding Superseding a message. 1.8 Forwarding Forwarding a message via news or mail. 1.9 Resending Resending a mail message. 1.10 Bouncing Bouncing a mail message.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The message-mail command pops up a new message buffer.
Two optional parameters are accepted: The first will be used as the
To header and the second as the Subject header. If these
aren't present, those two headers will be empty.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The message-news command pops up a new message buffer.
This function accepts two optional parameters. The first will be used
as the Newsgroups header and the second as the Subject
header. If these aren't present, those two headers will be empty.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The message-reply function pops up a message buffer that's a
reply to the message in the current buffer.
Message uses the normal methods to determine where replies are to go,
but you can change the behavior to suit your needs by fiddling with the
message-reply-to-function variable.
If you want the replies to go to the Sender instead of the
From, you could do something like this:
(setq message-reply-to-function
(lambda ()
(cond ((equal (mail-fetch-field "from") "somebody")
(mail-fetch-field "sender"))
(t
nil))))
|
This function will be called narrowed to the head of the article that is being replied to.
As you can see, this function should return a string if it has an
opinion as to what the To header should be. If it does not, it should
just return nil, and the normal methods for determining the To
header will be used.
This function can also return a list. In that case, each list element
should be a cons, where the car should be the name of an header
(eg. Cc) and the cdr should be the header value
(eg. `larsi@ifi.uio.no'). All these headers will be inserted into
the head of the outgoing mail.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The message-wide-reply pops up a message buffer that's a wide
reply to the message in the current buffer.
Message uses the normal methods to determine where wide replies are to go,
but you can change the behavior to suit your needs by fiddling with the
message-wide-reply-to-function. It is used in the same way as
message-reply-to-function (see section 1.3 Reply).
Addresses that matches the rmail-dont-reply-to-names regular
expression will be removed from the Cc header.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The message-followup command pops up a message buffer that's a
followup to the message in the current buffer.
Message uses the normal methods to determine where followups are to go,
but you can change the behavior to suit your needs by fiddling with the
message-followup-to-function. It is used in the same way as
message-reply-to-function (see section 1.3 Reply).
The message-use-followup-to variable says what to do about
Followup-To headers. If it is use, always use the value.
If it is ask (which is the default), ask whether to use the
value. If it is t, use the value unless it is `poster'. If
it is nil, don't use the value.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The message-cancel-news command cancels the article in the
current buffer.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The message-supersede command pops up a message buffer that will
supersede the message in the current buffer.
Headers matching the message-ignored-supersedes-headers are
removed before popping up the new message buffer. The default is
`^Path:\\|^Date\\|^NNTP-Posting-Host:\\|^Xref:\\|^Lines:\\|^Received:\\|^X-From-Line:\\|Return-Path:'.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The message-forward command pops up a message buffer to forward
the message in the current buffer. If given a prefix, forward using
news.
message-forward-start-separator
message-forward-end-separator
message-signature-before-forwarded-message
t, which it is by default, your personal
signature will be inserted before the forwarded message. If not, the
forwarded message will be inserted first in the new mail.
message-included-forward-headers
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The message-resend command will prompt the user for an address
and resend the message in the current buffer to that address.
Headers the match the message-ignored-resent-headers regexp will
be removed before sending the message. The default is
`^Return-receipt'.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The message-bounce command will, if the current buffer contains a
bounced mail message, pop up a message buffer stripped of the bounce
information.
Headers that match the message-ignored-bounced-headers regexp
will be removed before popping up the buffer. The default is
`^Received:'.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
2.1 Header Commands Commands for moving to headers. 2.2 Movement Moving around in message buffers. 2.3 Insertion Inserting things into message buffers. 2.4 Various Commands Various things. 2.5 Sending Actually sending the message.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
All these commands move to the header in question. If it doesn't exist, it will be inserted.
To header (message-goto-to).
Bcc header (message-goto-bcc).
Fcc header (message-goto-fcc).
Cc header (message-goto-cc).
Subject header (message-goto-subject).
Reply-To header (message-goto-reply-to).
Newsgroups header (message-goto-newsgroups).
Distribution header (message-goto-distribution).
Followup-To header (message-goto-followup-to).
Keywords header (message-goto-keywords).
Summary header (message-goto-summary).
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
message-goto-body).
message-goto-signature).
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
message-yank-original).
message-fill-yanked-message).
message-insert-signature).
message-ignored-cited-headers
message-citation-line-function
message-insert-citation-line.
message-yank-prefix
message-yank-prefix prepended to it. The default is `> '.
If it is nil, just indent the message.
message-indentation-spaces
message-cite-function
message-cite-original. You can also set it to
sc-cite-original to use Supercite.
message-indent-citation-function
(point) and (mark t). And each function
should leave point and mark around the citation text as modified.
message-signature
t
(which is the default), the message-signature-file file will be
inserted instead. If a function, the result from the function will be
used instead. If a form, the result from the form will be used instead.
If this variable is nil, no signature will be inserted at all.
message-signature-file
Note that RFC1036 says that a signature should be preceded by the three characters `-- ' on a line by themselves. This is to make it easier for the recipient to automatically recognize and process the signature. So don't remove those characters, even though you might feel that they ruin you beautiful design, like, totally.
Also note that no signature should be more than four lines long. Including ASCII graphics is an efficient way to get everybody to believe that you are silly and have nothing important to say.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
message-caesar-buffer-body). If narrowing is in effect, just
rotate the visible portion of the buffer. A numerical prefix says how
many places to rotate the text. The default is 13.
To header that contains the Reply-To or
From header of the message you're following up
(message-insert-to).
Newsgroups header that reflects the Followup-To
or Newsgroups header of the article you're replying to
(message-insert-newsgroups).
message-rename-buffer). If given a prefix,
prompt for a new buffer name.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
message-send-and-exit).
message-send).
message-dont-send).
message-kill-buffer).
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
3.1 Message Headers General message header stuff. 3.2 Mail Headers Customizing mail headers. 3.3 Mail Variables Other mail variables. 3.4 News Headers Customizing news headers. 3.5 News Variables Other news variables. 3.6 Various Message Variables Other message variables. 3.7 Sending Variables Variables for sending. 3.8 Message Buffers How Message names its buffers. 3.9 Message Actions Actions to be performed when exiting.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Message is quite aggressive on the message generation front. It has to be -- it's a combined news and mail agent. To be able to send combined messages, it has to generate all headers itself to ensure that mail and news copies of messages look sufficiently similar.
message-generate-headers-first
nil, generate all headers before starting to compose the
message.
message-from-style
From headers should look. There are four legal
values:
nil
parens
angles
default
angles if that doesn't require quoting, and
parens if it does. If even parens requires quoting, use
angles anyway.
message-deletable-headers
*post-buf* buffer, edit the Newsgroups line, and
ship it off again. By default, this variable makes sure that the old
generated Message-ID is deleted, and a new one generated. If
this isn't done, the entire empire would probably crumble, anarchy would
prevail, and cats would start walking on two legs and rule the world.
Allegedly.
message-default-headers
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
message-required-mail-headers
(From Date Subject (optional . In-Reply-To) Message-ID Lines
(optional . X-Mailer)) by default.
message-ignored-mail-headers
message-default-mail-headers
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
message-send-mail-function
message-send-mail-with-sendmail. If you prefer using MH
instead, set this variable to message-send-mail-with-mh.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
message-required-news-headers a list of header symbols. These
headers will either be automatically generated, or, if that's
impossible, they will be prompted for. The following symbols are legal:
From
message-make-from function, which depends on the
message-from-style, user-full-name,
user-mail-address variables.
Subject
Newsgroups
Organization
message-user-organization variable.
message-user-organization-file will be used if that variable is
t.
Lines
Message-ID
mail-host-address as the fully qualified domain name (FQDN)
of the machine if that variable is define. If not, it will use
system-name, which doesn't report a FQDN on some machines --
notably Suns.
X-Newsreader
message-newsreader local variable.
X-Mailer
message-mailer local variable, unless there already is an
X-Newsreader header present.
In-Reply-To
Date and From
header of the article being replied.
Expires
message-expires variable. It is highly deprecated and shouldn't
be used unless you know what you're doing.
Distribution
message-distribution-function variable. It is a deprecated and
much misunderstood header.
Path
message-user-path further controls how this
Path header is to look. If is is nil, the the server name
as the leaf node. If is is a string, use the string. If it is neither
a string nor nil, use the user name only. However, it is highly
unlikely that you should need to fiddle with this variable at all.
In addition, you can enter conses into this list. The car of this cons
should be a symbol. This symbol's name is the name of the header, and
the cdr can either be a string to be entered verbatim as the value of
this header, or it can be a function to be called. This function should
return a string to be inserted. For instance, if you want to insert
Mime-Version: 1.0, you should enter (Mime-Version . "1.0")
into the list. If you want to insert a funny quote, you could enter
something like (X-Yow . yow) into the list. The function
yow will then be called without any arguments.
If the list contains a cons where the car of the cons is
optional, the cdr of this cons will only be inserted if it is
non-nil.
Other variables for customizing outgoing news articles:
message-syntax-checks
nil, message will attempt to check the legality of the
headers, as well as some other stuff, before posting. You can control
the granularity of the check by adding or removing elements from this
list. Legal elements are:
subject-cmsg
sender
Sender header if the From header looks odd.
multiple-headers
sendsys
message-id
Message-ID looks ok.
from
From header seems nice.
long-lines
control-chars
size
new-text
signature
approved
Approved header, which is
something only moderators should include.
empty
empty-headers
existing-newsgroups
valid-newsgroups
Newsgroups and Followup-To headers
are valid syntactially.
All these conditions are checked by default.
message-ignored-news-headers
message-default-news-headers
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
message-send-news-function
message-send-news.
message-post-method
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
message-signature-separator
mail-header-separator
message-directory
message-autosave-directory
message-signature-setup-hook
message-setup-hook
message-header-setup-hook
message-send-hook
message-sent-hook
message-mode-syntax-table
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
message-fcc-handler-function
rmail-output which saves in Unix mailbox format.
message-courtesy-message
nil, no such courtesy
message will be added.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Message will generate new buffers with unique buffer names when you request a message buffer. When you send the message, the buffer isn't normally killed off. It's name is changed and a certain number of old message buffers are kept alive.
message-generate-new-buffers
nil, generate new buffers. The default is t. If
this is a function, call that function with three parameters: The type,
the to address and the group name. (Any of these may be nil.)
The function should return the new buffer name.
message-max-buffers
nil, no old message buffers
will ever be killed.
message-send-rename-function
(setq message-send-rename-function 'ignore) |
message-kill-buffer-on-exit
nil, kill the buffer immediately on exit.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
When Message is being used from a news/mail reader, the reader is likely to want to perform some task after the message has been sent. Perhaps return to the previous window configuration or mark an article as replied.
The user may exit from the message buffer in various ways. The most
common is C-c C-c, which sends the message and exits. Other
possibilities are C-c C-s which just sends the message, C-c
C-d which postpones the message editing and buries the message buffer,
and C-c C-k which kills the message buffer. Each of these actions
have lists associated with them that contains actions to be executed:
message-send-actions, message-exit-actions,
message-postpone-actions, and message-kill-actions.
Message provides a function to interface with these lists:
message-add-action. The first parameter is the action to be
added, and the rest of the arguments are which lists to add this action
to. Here's an example from Gnus:
(message-add-action `(set-window-configuration ,(current-window-configuration)) 'exit 'postpone 'kill) |
This restores the Gnus window configuration when the message buffer is killed, postponed or exited.
An action can be either a normal function; or a list where the
car is a function and the cdr is the list of arguments; or
a form to be evaled.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| Jump to: | A D E F L M N O P Q R S U X Y |
|---|
| Jump to: | A D E F L M N O P Q R S U X Y |
|---|
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| Jump to: | C |
|---|
| Jump to: | C |
|---|
| [Top] | [Contents] | [Index] | [ ? ] |
| [Top] | [Contents] | [Index] | [ ? ] |
1. Interface
2. Commands
3. Variables
4. Index
5. Key Index
| [Top] | [Contents] | [Index] | [ ? ] |
| Button | Name | Go to | From 1.2.3 go to |
|---|---|---|---|
| [ < ] | Back | previous section in reading order | 1.2.2 |
| [ > ] | Forward | next section in reading order | 1.2.4 |
| [ << ] | FastBack | previous or up-and-previous section | 1.1 |
| [ Up ] | Up | up section | 1.2 |
| [ >> ] | FastForward | next or up-and-next section | 1.3 |
| [Top] | Top | cover (top) of document | |
| [Contents] | Contents | table of contents | |
| [Index] | Index | concept index | |
| [ ? ] | About | this page |