annotate man/sending.texi @ 59798:0816b427495a

Don't say just "option" when talking about variables.
author Richard M. Stallman <rms@gnu.org>
date Sun, 30 Jan 2005 11:23:17 +0000
parents a0a1889ba8bd
children f7a3d5a80994 fa9654493afb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
1 @c This is part of the Emacs manual.
49904
d927faa801ca Add node about SMTP.
Simon Josefsson <jas@extundo.com>
parents: 46210
diff changeset
2 @c Copyright (C) 1985,86,87,93,94,95,97,2000,2001, 2003
28126
e7cf77f27506 Fix copyright line.
Dave Love <fx@gnu.org>
parents: 27209
diff changeset
3 @c Free Software Foundation, Inc.
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
4 @c See file emacs.texi for copying conditions.
Dave Love <fx@gnu.org>
parents:
diff changeset
5 @node Sending Mail, Rmail, Picture, Top
Dave Love <fx@gnu.org>
parents:
diff changeset
6 @chapter Sending Mail
Dave Love <fx@gnu.org>
parents:
diff changeset
7 @cindex sending mail
Dave Love <fx@gnu.org>
parents:
diff changeset
8 @cindex mail
Dave Love <fx@gnu.org>
parents:
diff changeset
9 @cindex message
Dave Love <fx@gnu.org>
parents:
diff changeset
10
Dave Love <fx@gnu.org>
parents:
diff changeset
11 To send a message in Emacs, you start by typing a command (@kbd{C-x m})
Dave Love <fx@gnu.org>
parents:
diff changeset
12 to select and initialize the @samp{*mail*} buffer. Then you edit the text
Dave Love <fx@gnu.org>
parents:
diff changeset
13 and headers of the message in this buffer, and type another command
Dave Love <fx@gnu.org>
parents:
diff changeset
14 (@kbd{C-c C-s} or @kbd{C-c C-c}) to send the message.
Dave Love <fx@gnu.org>
parents:
diff changeset
15
Dave Love <fx@gnu.org>
parents:
diff changeset
16 @table @kbd
Dave Love <fx@gnu.org>
parents:
diff changeset
17 @item C-x m
Dave Love <fx@gnu.org>
parents:
diff changeset
18 Begin composing a message to send (@code{compose-mail}).
Dave Love <fx@gnu.org>
parents:
diff changeset
19 @item C-x 4 m
Dave Love <fx@gnu.org>
parents:
diff changeset
20 Likewise, but display the message in another window
Dave Love <fx@gnu.org>
parents:
diff changeset
21 (@code{compose-mail-other-window}).
Dave Love <fx@gnu.org>
parents:
diff changeset
22 @item C-x 5 m
Dave Love <fx@gnu.org>
parents:
diff changeset
23 Likewise, but make a new frame (@code{compose-mail-other-frame}).
Dave Love <fx@gnu.org>
parents:
diff changeset
24 @item C-c C-s
Dave Love <fx@gnu.org>
parents:
diff changeset
25 In Mail mode, send the message (@code{mail-send}).
Dave Love <fx@gnu.org>
parents:
diff changeset
26 @item C-c C-c
Dave Love <fx@gnu.org>
parents:
diff changeset
27 Send the message and bury the mail buffer (@code{mail-send-and-exit}).
Dave Love <fx@gnu.org>
parents:
diff changeset
28 @end table
Dave Love <fx@gnu.org>
parents:
diff changeset
29
Dave Love <fx@gnu.org>
parents:
diff changeset
30 @kindex C-x m
Dave Love <fx@gnu.org>
parents:
diff changeset
31 @findex compose-mail
Dave Love <fx@gnu.org>
parents:
diff changeset
32 @kindex C-x 4 m
Dave Love <fx@gnu.org>
parents:
diff changeset
33 @findex compose-mail-other-window
Dave Love <fx@gnu.org>
parents:
diff changeset
34 @kindex C-x 5 m
Dave Love <fx@gnu.org>
parents:
diff changeset
35 @findex compose-mail-other-frame
Dave Love <fx@gnu.org>
parents:
diff changeset
36 The command @kbd{C-x m} (@code{compose-mail}) selects a buffer named
Dave Love <fx@gnu.org>
parents:
diff changeset
37 @samp{*mail*} and initializes it with the skeleton of an outgoing
Dave Love <fx@gnu.org>
parents:
diff changeset
38 message. @kbd{C-x 4 m} (@code{compose-mail-other-window}) selects the
Dave Love <fx@gnu.org>
parents:
diff changeset
39 @samp{*mail*} buffer in a different window, leaving the previous current
Dave Love <fx@gnu.org>
parents:
diff changeset
40 buffer visible. @kbd{C-x 5 m} (@code{compose-mail-other-frame}) creates
Dave Love <fx@gnu.org>
parents:
diff changeset
41 a new frame to select the @samp{*mail*} buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
42
Dave Love <fx@gnu.org>
parents:
diff changeset
43 Because the mail-composition buffer is an ordinary Emacs buffer, you can
Dave Love <fx@gnu.org>
parents:
diff changeset
44 switch to other buffers while in the middle of composing mail, and switch
Dave Love <fx@gnu.org>
parents:
diff changeset
45 back later (or never). If you use the @kbd{C-x m} command again when you
Dave Love <fx@gnu.org>
parents:
diff changeset
46 have been composing another message but have not sent it, you are asked to
Dave Love <fx@gnu.org>
parents:
diff changeset
47 confirm before the old message is erased. If you answer @kbd{n}, the
Dave Love <fx@gnu.org>
parents:
diff changeset
48 @samp{*mail*} buffer is left selected with its old contents, so you can
Dave Love <fx@gnu.org>
parents:
diff changeset
49 finish the old message and send it. @kbd{C-u C-x m} is another way to do
Dave Love <fx@gnu.org>
parents:
diff changeset
50 this. Sending the message marks the @samp{*mail*} buffer ``unmodified,''
Dave Love <fx@gnu.org>
parents:
diff changeset
51 which avoids the need for confirmation when @kbd{C-x m} is next used.
Dave Love <fx@gnu.org>
parents:
diff changeset
52
Dave Love <fx@gnu.org>
parents:
diff changeset
53 If you are composing a message in the @samp{*mail*} buffer and want to
Dave Love <fx@gnu.org>
parents:
diff changeset
54 send another message before finishing the first, rename the
Dave Love <fx@gnu.org>
parents:
diff changeset
55 @samp{*mail*} buffer using @kbd{M-x rename-uniquely} (@pxref{Misc
Dave Love <fx@gnu.org>
parents:
diff changeset
56 Buffer}). Then you can use @kbd{C-x m} or its variants described above
Dave Love <fx@gnu.org>
parents:
diff changeset
57 to make a new @samp{*mail*} buffer. Once you've done that, you can work
Dave Love <fx@gnu.org>
parents:
diff changeset
58 with each mail buffer independently.
Dave Love <fx@gnu.org>
parents:
diff changeset
59
46210
2a2b9925685b Document mail-default-directory.
Richard M. Stallman <rms@gnu.org>
parents: 39287
diff changeset
60 @vindex mail-default-directory
2a2b9925685b Document mail-default-directory.
Richard M. Stallman <rms@gnu.org>
parents: 39287
diff changeset
61 The variable @code{mail-default-directory} controls the default
2a2b9925685b Document mail-default-directory.
Richard M. Stallman <rms@gnu.org>
parents: 39287
diff changeset
62 directory for mail buffers, and also says where to put their auto-save
2a2b9925685b Document mail-default-directory.
Richard M. Stallman <rms@gnu.org>
parents: 39287
diff changeset
63 files.
2a2b9925685b Document mail-default-directory.
Richard M. Stallman <rms@gnu.org>
parents: 39287
diff changeset
64
36178
1f5dd1c73a2a Delete Footnote mode info.
Richard M. Stallman <rms@gnu.org>
parents: 34922
diff changeset
65 @ignore
1f5dd1c73a2a Delete Footnote mode info.
Richard M. Stallman <rms@gnu.org>
parents: 34922
diff changeset
66 @c Commented out because it is not user-oriented;
1f5dd1c73a2a Delete Footnote mode info.
Richard M. Stallman <rms@gnu.org>
parents: 34922
diff changeset
67 @c it doesn't say how to do some job. -- rms.
30986
ab681757a44b (Sending Mail): Mention EUDC.
Dave Love <fx@gnu.org>
parents: 30806
diff changeset
68 @cindex directory servers
ab681757a44b (Sending Mail): Mention EUDC.
Dave Love <fx@gnu.org>
parents: 30806
diff changeset
69 @cindex LDAP
ab681757a44b (Sending Mail): Mention EUDC.
Dave Love <fx@gnu.org>
parents: 30806
diff changeset
70 @cindex PH/QI
ab681757a44b (Sending Mail): Mention EUDC.
Dave Love <fx@gnu.org>
parents: 30806
diff changeset
71 @cindex names and addresses
ab681757a44b (Sending Mail): Mention EUDC.
Dave Love <fx@gnu.org>
parents: 30806
diff changeset
72 There is an interface to directory servers using various protocols such
ab681757a44b (Sending Mail): Mention EUDC.
Dave Love <fx@gnu.org>
parents: 30806
diff changeset
73 as LDAP or the CCSO white pages directory system (PH/QI), described in a
ab681757a44b (Sending Mail): Mention EUDC.
Dave Love <fx@gnu.org>
parents: 30806
diff changeset
74 separate manual. It may be useful for looking up names and addresses.
ab681757a44b (Sending Mail): Mention EUDC.
Dave Love <fx@gnu.org>
parents: 30806
diff changeset
75 @xref{Top,,EUDC, eudc, EUDC Manual}.
36178
1f5dd1c73a2a Delete Footnote mode info.
Richard M. Stallman <rms@gnu.org>
parents: 34922
diff changeset
76 @end ignore
30986
ab681757a44b (Sending Mail): Mention EUDC.
Dave Love <fx@gnu.org>
parents: 30806
diff changeset
77
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
78 @menu
Dave Love <fx@gnu.org>
parents:
diff changeset
79 * Format: Mail Format. Format of the mail being composed.
Dave Love <fx@gnu.org>
parents:
diff changeset
80 * Headers: Mail Headers. Details of permitted mail header fields.
Dave Love <fx@gnu.org>
parents:
diff changeset
81 * Aliases: Mail Aliases. Abbreviating and grouping mail addresses.
Dave Love <fx@gnu.org>
parents:
diff changeset
82 * Mode: Mail Mode. Special commands for editing mail being composed.
36178
1f5dd1c73a2a Delete Footnote mode info.
Richard M. Stallman <rms@gnu.org>
parents: 34922
diff changeset
83 * Amuse: Mail Amusements. Distracting the NSA; adding fortune messages.
30806
033b219f3c99 small fixes
Dave Love <fx@gnu.org>
parents: 29107
diff changeset
84 * Methods: Mail Methods. Using alternative mail-composition methods.
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
85 @end menu
Dave Love <fx@gnu.org>
parents:
diff changeset
86
Dave Love <fx@gnu.org>
parents:
diff changeset
87 @node Mail Format
Dave Love <fx@gnu.org>
parents:
diff changeset
88 @section The Format of the Mail Buffer
Dave Love <fx@gnu.org>
parents:
diff changeset
89
Dave Love <fx@gnu.org>
parents:
diff changeset
90 In addition to the @dfn{text} or @dfn{body}, a message has @dfn{header
Dave Love <fx@gnu.org>
parents:
diff changeset
91 fields} which say who sent it, when, to whom, why, and so on. Some
Dave Love <fx@gnu.org>
parents:
diff changeset
92 header fields, such as @samp{Date} and @samp{Sender}, are created
Dave Love <fx@gnu.org>
parents:
diff changeset
93 automatically when you send the message. Others, such as the recipient
Dave Love <fx@gnu.org>
parents:
diff changeset
94 names, must be specified by you in order to send the message properly.
Dave Love <fx@gnu.org>
parents:
diff changeset
95
Dave Love <fx@gnu.org>
parents:
diff changeset
96 Mail mode provides a few commands to help you edit some header fields,
Dave Love <fx@gnu.org>
parents:
diff changeset
97 and some are preinitialized in the buffer automatically at times. You can
Dave Love <fx@gnu.org>
parents:
diff changeset
98 insert and edit header fields using ordinary editing commands.
Dave Love <fx@gnu.org>
parents:
diff changeset
99
Dave Love <fx@gnu.org>
parents:
diff changeset
100 The line in the buffer that says
Dave Love <fx@gnu.org>
parents:
diff changeset
101
Dave Love <fx@gnu.org>
parents:
diff changeset
102 @example
Dave Love <fx@gnu.org>
parents:
diff changeset
103 --text follows this line--
Dave Love <fx@gnu.org>
parents:
diff changeset
104 @end example
Dave Love <fx@gnu.org>
parents:
diff changeset
105
Dave Love <fx@gnu.org>
parents:
diff changeset
106 @noindent
Dave Love <fx@gnu.org>
parents:
diff changeset
107 is a special delimiter that separates the headers you have specified from
Dave Love <fx@gnu.org>
parents:
diff changeset
108 the text. Whatever follows this line is the text of the message; the
Dave Love <fx@gnu.org>
parents:
diff changeset
109 headers precede it. The delimiter line itself does not appear in the
Dave Love <fx@gnu.org>
parents:
diff changeset
110 message actually sent. The text used for the delimiter line is controlled
Dave Love <fx@gnu.org>
parents:
diff changeset
111 by the variable @code{mail-header-separator}.
Dave Love <fx@gnu.org>
parents:
diff changeset
112
Dave Love <fx@gnu.org>
parents:
diff changeset
113 Here is an example of what the headers and text in the mail buffer
Dave Love <fx@gnu.org>
parents:
diff changeset
114 might look like.
Dave Love <fx@gnu.org>
parents:
diff changeset
115
Dave Love <fx@gnu.org>
parents:
diff changeset
116 @example
Dave Love <fx@gnu.org>
parents:
diff changeset
117 To: gnu@@gnu.org
Dave Love <fx@gnu.org>
parents:
diff changeset
118 CC: lungfish@@spam.org, byob@@spam.org
Dave Love <fx@gnu.org>
parents:
diff changeset
119 Subject: The Emacs Manual
Dave Love <fx@gnu.org>
parents:
diff changeset
120 --Text follows this line--
Dave Love <fx@gnu.org>
parents:
diff changeset
121 Please ignore this message.
Dave Love <fx@gnu.org>
parents:
diff changeset
122 @end example
Dave Love <fx@gnu.org>
parents:
diff changeset
123
Dave Love <fx@gnu.org>
parents:
diff changeset
124 @node Mail Headers
Dave Love <fx@gnu.org>
parents:
diff changeset
125 @section Mail Header Fields
Dave Love <fx@gnu.org>
parents:
diff changeset
126 @cindex headers (of mail message)
Dave Love <fx@gnu.org>
parents:
diff changeset
127
Dave Love <fx@gnu.org>
parents:
diff changeset
128 A header field in the mail buffer starts with a field name at the
Dave Love <fx@gnu.org>
parents:
diff changeset
129 beginning of a line, terminated by a colon. Upper and lower case are
Dave Love <fx@gnu.org>
parents:
diff changeset
130 equivalent in field names (and in mailing addresses also). After the
Dave Love <fx@gnu.org>
parents:
diff changeset
131 colon and optional whitespace comes the contents of the field.
Dave Love <fx@gnu.org>
parents:
diff changeset
132
Dave Love <fx@gnu.org>
parents:
diff changeset
133 You can use any name you like for a header field, but normally people
Dave Love <fx@gnu.org>
parents:
diff changeset
134 use only standard field names with accepted meanings. Here is a table
Dave Love <fx@gnu.org>
parents:
diff changeset
135 of fields commonly used in outgoing messages.
Dave Love <fx@gnu.org>
parents:
diff changeset
136
Dave Love <fx@gnu.org>
parents:
diff changeset
137 @table @samp
Dave Love <fx@gnu.org>
parents:
diff changeset
138 @item To
Dave Love <fx@gnu.org>
parents:
diff changeset
139 This field contains the mailing addresses to which the message is
Dave Love <fx@gnu.org>
parents:
diff changeset
140 addressed. If you list more than one address, use commas, not spaces,
Dave Love <fx@gnu.org>
parents:
diff changeset
141 to separate them.
Dave Love <fx@gnu.org>
parents:
diff changeset
142
Dave Love <fx@gnu.org>
parents:
diff changeset
143 @item Subject
Dave Love <fx@gnu.org>
parents:
diff changeset
144 The contents of the @samp{Subject} field should be a piece of text
Dave Love <fx@gnu.org>
parents:
diff changeset
145 that says what the message is about. The reason @samp{Subject} fields
Dave Love <fx@gnu.org>
parents:
diff changeset
146 are useful is that most mail-reading programs can provide a summary of
Dave Love <fx@gnu.org>
parents:
diff changeset
147 messages, listing the subject of each message but not its text.
Dave Love <fx@gnu.org>
parents:
diff changeset
148
Dave Love <fx@gnu.org>
parents:
diff changeset
149 @item CC
Dave Love <fx@gnu.org>
parents:
diff changeset
150 This field contains additional mailing addresses to send the message to,
Dave Love <fx@gnu.org>
parents:
diff changeset
151 like @samp{To} except that these readers should not regard the message
Dave Love <fx@gnu.org>
parents:
diff changeset
152 as directed at them.
Dave Love <fx@gnu.org>
parents:
diff changeset
153
Dave Love <fx@gnu.org>
parents:
diff changeset
154 @item BCC
Dave Love <fx@gnu.org>
parents:
diff changeset
155 This field contains additional mailing addresses to send the message to,
Dave Love <fx@gnu.org>
parents:
diff changeset
156 which should not appear in the header of the message actually sent.
Dave Love <fx@gnu.org>
parents:
diff changeset
157 Copies sent this way are called @dfn{blind carbon copies}.
Dave Love <fx@gnu.org>
parents:
diff changeset
158
Dave Love <fx@gnu.org>
parents:
diff changeset
159 @vindex mail-self-blind
32392
4d8ff72a1290 Document mail-default-headers and an alternative method to send Bcc
Eli Zaretskii <eliz@gnu.org>
parents: 32313
diff changeset
160 @cindex copy of every outgoing message
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
161 To send a blind carbon copy of every outgoing message to yourself, set
32392
4d8ff72a1290 Document mail-default-headers and an alternative method to send Bcc
Eli Zaretskii <eliz@gnu.org>
parents: 32313
diff changeset
162 the variable @code{mail-self-blind} to @code{t}. To send a blind carbon
4d8ff72a1290 Document mail-default-headers and an alternative method to send Bcc
Eli Zaretskii <eliz@gnu.org>
parents: 32313
diff changeset
163 copy of every message to some other @var{address}, set the variable
36178
1f5dd1c73a2a Delete Footnote mode info.
Richard M. Stallman <rms@gnu.org>
parents: 34922
diff changeset
164 @code{mail-default-headers} to @code{"Bcc: @var{address}\n"}.
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
165
Dave Love <fx@gnu.org>
parents:
diff changeset
166 @item FCC
Dave Love <fx@gnu.org>
parents:
diff changeset
167 This field contains the name of one file and directs Emacs to append a
Dave Love <fx@gnu.org>
parents:
diff changeset
168 copy of the message to that file when you send the message. If the file
Dave Love <fx@gnu.org>
parents:
diff changeset
169 is in Rmail format, Emacs writes the message in Rmail format; otherwise,
37578
2e1126d1c8b2 Explain use of multiple FCC fields.
Richard M. Stallman <rms@gnu.org>
parents: 36263
diff changeset
170 Emacs writes the message in system mail file format. To specify
2e1126d1c8b2 Explain use of multiple FCC fields.
Richard M. Stallman <rms@gnu.org>
parents: 36263
diff changeset
171 more than one file, use several @samp{FCC} fields, with one file
2e1126d1c8b2 Explain use of multiple FCC fields.
Richard M. Stallman <rms@gnu.org>
parents: 36263
diff changeset
172 name in each field.
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
173
Dave Love <fx@gnu.org>
parents:
diff changeset
174 @vindex mail-archive-file-name
Dave Love <fx@gnu.org>
parents:
diff changeset
175 To put a fixed file name in the @samp{FCC} field each time you start
Dave Love <fx@gnu.org>
parents:
diff changeset
176 editing an outgoing message, set the variable
Dave Love <fx@gnu.org>
parents:
diff changeset
177 @code{mail-archive-file-name} to that file name. Unless you remove the
Dave Love <fx@gnu.org>
parents:
diff changeset
178 @samp{FCC} field before sending, the message will be written into that
Dave Love <fx@gnu.org>
parents:
diff changeset
179 file when it is sent.
Dave Love <fx@gnu.org>
parents:
diff changeset
180
Dave Love <fx@gnu.org>
parents:
diff changeset
181 @item From
Dave Love <fx@gnu.org>
parents:
diff changeset
182 Use the @samp{From} field to say who you are, when the account you are
Dave Love <fx@gnu.org>
parents:
diff changeset
183 using to send the mail is not your own. The contents of the @samp{From}
Dave Love <fx@gnu.org>
parents:
diff changeset
184 field should be a valid mailing address, since replies will normally go
Dave Love <fx@gnu.org>
parents:
diff changeset
185 there. If you don't specify the @samp{From} field yourself, Emacs uses
Dave Love <fx@gnu.org>
parents:
diff changeset
186 the value of @code{user-mail-address} as the default.
Dave Love <fx@gnu.org>
parents:
diff changeset
187
Dave Love <fx@gnu.org>
parents:
diff changeset
188 @item Reply-to
Dave Love <fx@gnu.org>
parents:
diff changeset
189 Use this field to direct replies to a different address. Most
Dave Love <fx@gnu.org>
parents:
diff changeset
190 mail-reading programs (including Rmail) automatically send replies to
Dave Love <fx@gnu.org>
parents:
diff changeset
191 the @samp{Reply-to} address in preference to the @samp{From} address.
Dave Love <fx@gnu.org>
parents:
diff changeset
192 By adding a @samp{Reply-to} field to your header, you can work around
Dave Love <fx@gnu.org>
parents:
diff changeset
193 any problems your @samp{From} address may cause for replies.
Dave Love <fx@gnu.org>
parents:
diff changeset
194
29107
203ba1f77b7b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents: 28126
diff changeset
195 @cindex @env{REPLYTO} environment variable
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
196 @vindex mail-default-reply-to
Dave Love <fx@gnu.org>
parents:
diff changeset
197 To put a fixed @samp{Reply-to} address into every outgoing message, set
Dave Love <fx@gnu.org>
parents:
diff changeset
198 the variable @code{mail-default-reply-to} to that address (as a string).
Dave Love <fx@gnu.org>
parents:
diff changeset
199 Then @code{mail} initializes the message with a @samp{Reply-to} field as
Dave Love <fx@gnu.org>
parents:
diff changeset
200 specified. You can delete or alter that header field before you send
Dave Love <fx@gnu.org>
parents:
diff changeset
201 the message, if you wish. When Emacs starts up, if the environment
29107
203ba1f77b7b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents: 28126
diff changeset
202 variable @env{REPLYTO} is set, @code{mail-default-reply-to} is
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
203 initialized from that environment variable.
Dave Love <fx@gnu.org>
parents:
diff changeset
204
Dave Love <fx@gnu.org>
parents:
diff changeset
205 @item In-reply-to
38461
23f63206a867 Proofreading fixes from Chris Green <chris_e_green@yahoo.com>.
Eli Zaretskii <eliz@gnu.org>
parents: 37578
diff changeset
206 This field contains a piece of text describing the message you are
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
207 replying to. Some mail systems can use this information to correlate
Dave Love <fx@gnu.org>
parents:
diff changeset
208 related pieces of mail. Normally this field is filled in by Rmail
Dave Love <fx@gnu.org>
parents:
diff changeset
209 when you reply to a message in Rmail, and you never need to
Dave Love <fx@gnu.org>
parents:
diff changeset
210 think about it (@pxref{Rmail}).
Dave Love <fx@gnu.org>
parents:
diff changeset
211
Dave Love <fx@gnu.org>
parents:
diff changeset
212 @item References
Dave Love <fx@gnu.org>
parents:
diff changeset
213 This field lists the message IDs of related previous messages. Rmail
Dave Love <fx@gnu.org>
parents:
diff changeset
214 sets up this field automatically when you reply to a message.
Dave Love <fx@gnu.org>
parents:
diff changeset
215 @end table
Dave Love <fx@gnu.org>
parents:
diff changeset
216
37578
2e1126d1c8b2 Explain use of multiple FCC fields.
Richard M. Stallman <rms@gnu.org>
parents: 36263
diff changeset
217 The @samp{To}, @samp{CC}, and @samp{BCC} header fields can appear
2e1126d1c8b2 Explain use of multiple FCC fields.
Richard M. Stallman <rms@gnu.org>
parents: 36263
diff changeset
218 any number of times, and each such header field can contain multiple
2e1126d1c8b2 Explain use of multiple FCC fields.
Richard M. Stallman <rms@gnu.org>
parents: 36263
diff changeset
219 addresses, separated by commas. This way, you can specify any number
2e1126d1c8b2 Explain use of multiple FCC fields.
Richard M. Stallman <rms@gnu.org>
parents: 36263
diff changeset
220 of places to send the message. These fields can also have
2e1126d1c8b2 Explain use of multiple FCC fields.
Richard M. Stallman <rms@gnu.org>
parents: 36263
diff changeset
221 continuation lines: one or more lines starting with whitespace,
2e1126d1c8b2 Explain use of multiple FCC fields.
Richard M. Stallman <rms@gnu.org>
parents: 36263
diff changeset
222 following the starting line of the field, are considered part of the
2e1126d1c8b2 Explain use of multiple FCC fields.
Richard M. Stallman <rms@gnu.org>
parents: 36263
diff changeset
223 field. Here's an example of a @samp{To} field with a continuation
2e1126d1c8b2 Explain use of multiple FCC fields.
Richard M. Stallman <rms@gnu.org>
parents: 36263
diff changeset
224 line:@refill
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
225
Dave Love <fx@gnu.org>
parents:
diff changeset
226 @example
Dave Love <fx@gnu.org>
parents:
diff changeset
227 @group
Dave Love <fx@gnu.org>
parents:
diff changeset
228 To: foo@@here.net, this@@there.net,
Dave Love <fx@gnu.org>
parents:
diff changeset
229 me@@gnu.cambridge.mass.usa.earth.spiral3281
Dave Love <fx@gnu.org>
parents:
diff changeset
230 @end group
Dave Love <fx@gnu.org>
parents:
diff changeset
231 @end example
Dave Love <fx@gnu.org>
parents:
diff changeset
232
Dave Love <fx@gnu.org>
parents:
diff changeset
233 @vindex mail-from-style
Dave Love <fx@gnu.org>
parents:
diff changeset
234 When you send the message, if you didn't write a @samp{From} field
Dave Love <fx@gnu.org>
parents:
diff changeset
235 yourself, Emacs puts in one for you. The variable
Dave Love <fx@gnu.org>
parents:
diff changeset
236 @code{mail-from-style} controls the format:
Dave Love <fx@gnu.org>
parents:
diff changeset
237
Dave Love <fx@gnu.org>
parents:
diff changeset
238 @table @code
Dave Love <fx@gnu.org>
parents:
diff changeset
239 @item nil
Dave Love <fx@gnu.org>
parents:
diff changeset
240 Use just the email address, as in @samp{king@@grassland.com}.
Dave Love <fx@gnu.org>
parents:
diff changeset
241 @item parens
Dave Love <fx@gnu.org>
parents:
diff changeset
242 Use both email address and full name, as in @samp{king@@grassland.com (Elvis
Dave Love <fx@gnu.org>
parents:
diff changeset
243 Parsley)}.
Dave Love <fx@gnu.org>
parents:
diff changeset
244 @item angles
Dave Love <fx@gnu.org>
parents:
diff changeset
245 Use both email address and full name, as in @samp{Elvis Parsley
Dave Love <fx@gnu.org>
parents:
diff changeset
246 <king@@grassland.com>}.
Dave Love <fx@gnu.org>
parents:
diff changeset
247 @item system-default
Dave Love <fx@gnu.org>
parents:
diff changeset
248 Allow the system to insert the @samp{From} field.
Dave Love <fx@gnu.org>
parents:
diff changeset
249 @end table
Dave Love <fx@gnu.org>
parents:
diff changeset
250
32392
4d8ff72a1290 Document mail-default-headers and an alternative method to send Bcc
Eli Zaretskii <eliz@gnu.org>
parents: 32313
diff changeset
251 @vindex mail-default-headers
36178
1f5dd1c73a2a Delete Footnote mode info.
Richard M. Stallman <rms@gnu.org>
parents: 34922
diff changeset
252 You can direct Emacs to insert certain default headers into the
1f5dd1c73a2a Delete Footnote mode info.
Richard M. Stallman <rms@gnu.org>
parents: 34922
diff changeset
253 outgoing message by setting the variable @code{mail-default-headers}
1f5dd1c73a2a Delete Footnote mode info.
Richard M. Stallman <rms@gnu.org>
parents: 34922
diff changeset
254 to a string. Then @code{C-x m} inserts this string into the message
1f5dd1c73a2a Delete Footnote mode info.
Richard M. Stallman <rms@gnu.org>
parents: 34922
diff changeset
255 headers. If the default header fields are not appropriate for a
1f5dd1c73a2a Delete Footnote mode info.
Richard M. Stallman <rms@gnu.org>
parents: 34922
diff changeset
256 particular message, edit them as appropriate before sending the
1f5dd1c73a2a Delete Footnote mode info.
Richard M. Stallman <rms@gnu.org>
parents: 34922
diff changeset
257 message.
32392
4d8ff72a1290 Document mail-default-headers and an alternative method to send Bcc
Eli Zaretskii <eliz@gnu.org>
parents: 32313
diff changeset
258
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
259 @node Mail Aliases
Dave Love <fx@gnu.org>
parents:
diff changeset
260 @section Mail Aliases
Dave Love <fx@gnu.org>
parents:
diff changeset
261 @cindex mail aliases
Dave Love <fx@gnu.org>
parents:
diff changeset
262 @cindex @file{.mailrc} file
Dave Love <fx@gnu.org>
parents:
diff changeset
263 @cindex mailrc file
Dave Love <fx@gnu.org>
parents:
diff changeset
264
Dave Love <fx@gnu.org>
parents:
diff changeset
265 You can define @dfn{mail aliases} in a file named @file{~/.mailrc}.
Dave Love <fx@gnu.org>
parents:
diff changeset
266 These are short mnemonic names which stand for mail addresses or groups of
Dave Love <fx@gnu.org>
parents:
diff changeset
267 mail addresses. Like many other mail programs, Emacs expands aliases
Dave Love <fx@gnu.org>
parents:
diff changeset
268 when they occur in the @samp{To}, @samp{From}, @samp{CC}, @samp{BCC}, and
Dave Love <fx@gnu.org>
parents:
diff changeset
269 @samp{Reply-to} fields, plus their @samp{Resent-} variants.
Dave Love <fx@gnu.org>
parents:
diff changeset
270
Dave Love <fx@gnu.org>
parents:
diff changeset
271 To define an alias in @file{~/.mailrc}, write a line in the following
Dave Love <fx@gnu.org>
parents:
diff changeset
272 format:
Dave Love <fx@gnu.org>
parents:
diff changeset
273
Dave Love <fx@gnu.org>
parents:
diff changeset
274 @example
Dave Love <fx@gnu.org>
parents:
diff changeset
275 alias @var{shortaddress} @var{fulladdresses}
Dave Love <fx@gnu.org>
parents:
diff changeset
276 @end example
Dave Love <fx@gnu.org>
parents:
diff changeset
277
Dave Love <fx@gnu.org>
parents:
diff changeset
278 @noindent
Dave Love <fx@gnu.org>
parents:
diff changeset
279 Here @var{fulladdresses} stands for one or more mail addresses for
Dave Love <fx@gnu.org>
parents:
diff changeset
280 @var{shortaddress} to expand into. Separate multiple addresses with
Dave Love <fx@gnu.org>
parents:
diff changeset
281 spaces; if an address contains a space, quote the whole address with a
Dave Love <fx@gnu.org>
parents:
diff changeset
282 pair of double-quotes.
Dave Love <fx@gnu.org>
parents:
diff changeset
283
Dave Love <fx@gnu.org>
parents:
diff changeset
284 For instance, to make @code{maingnu} stand for
Dave Love <fx@gnu.org>
parents:
diff changeset
285 @code{gnu@@gnu.org} plus a local address of your own, put in
Dave Love <fx@gnu.org>
parents:
diff changeset
286 this line:@refill
Dave Love <fx@gnu.org>
parents:
diff changeset
287
Dave Love <fx@gnu.org>
parents:
diff changeset
288 @example
Dave Love <fx@gnu.org>
parents:
diff changeset
289 alias maingnu gnu@@gnu.org local-gnu
Dave Love <fx@gnu.org>
parents:
diff changeset
290 @end example
Dave Love <fx@gnu.org>
parents:
diff changeset
291
Dave Love <fx@gnu.org>
parents:
diff changeset
292 Emacs also recognizes include commands in @samp{.mailrc} files.
Dave Love <fx@gnu.org>
parents:
diff changeset
293 They look like this:
Dave Love <fx@gnu.org>
parents:
diff changeset
294
Dave Love <fx@gnu.org>
parents:
diff changeset
295 @example
Dave Love <fx@gnu.org>
parents:
diff changeset
296 source @var{filename}
Dave Love <fx@gnu.org>
parents:
diff changeset
297 @end example
Dave Love <fx@gnu.org>
parents:
diff changeset
298
Dave Love <fx@gnu.org>
parents:
diff changeset
299 @noindent
Dave Love <fx@gnu.org>
parents:
diff changeset
300 The file @file{~/.mailrc} is used primarily by other mail-reading
Dave Love <fx@gnu.org>
parents:
diff changeset
301 programs; it can contain various other commands. Emacs ignores
Dave Love <fx@gnu.org>
parents:
diff changeset
302 everything in it except for alias definitions and include commands.
Dave Love <fx@gnu.org>
parents:
diff changeset
303
Dave Love <fx@gnu.org>
parents:
diff changeset
304 @findex define-mail-alias
Dave Love <fx@gnu.org>
parents:
diff changeset
305 Another way to define a mail alias, within Emacs alone, is with the
Dave Love <fx@gnu.org>
parents:
diff changeset
306 @code{define-mail-alias} command. It prompts for the alias and then the
Dave Love <fx@gnu.org>
parents:
diff changeset
307 full address. You can use it to define aliases in your @file{.emacs}
Dave Love <fx@gnu.org>
parents:
diff changeset
308 file, like this:
Dave Love <fx@gnu.org>
parents:
diff changeset
309
Dave Love <fx@gnu.org>
parents:
diff changeset
310 @example
Dave Love <fx@gnu.org>
parents:
diff changeset
311 (define-mail-alias "maingnu" "gnu@@gnu.org")
Dave Love <fx@gnu.org>
parents:
diff changeset
312 @end example
Dave Love <fx@gnu.org>
parents:
diff changeset
313
Dave Love <fx@gnu.org>
parents:
diff changeset
314 @vindex mail-aliases
Dave Love <fx@gnu.org>
parents:
diff changeset
315 @code{define-mail-alias} records aliases by adding them to a
Dave Love <fx@gnu.org>
parents:
diff changeset
316 variable named @code{mail-aliases}. If you are comfortable with
Dave Love <fx@gnu.org>
parents:
diff changeset
317 manipulating Lisp lists, you can set @code{mail-aliases} directly. The
Dave Love <fx@gnu.org>
parents:
diff changeset
318 initial value of @code{mail-aliases} is @code{t}, which means that
Dave Love <fx@gnu.org>
parents:
diff changeset
319 Emacs should read @file{.mailrc} to get the proper value.
Dave Love <fx@gnu.org>
parents:
diff changeset
320
Dave Love <fx@gnu.org>
parents:
diff changeset
321 @vindex mail-personal-alias-file
Dave Love <fx@gnu.org>
parents:
diff changeset
322 You can specify a different file name to use instead of
Dave Love <fx@gnu.org>
parents:
diff changeset
323 @file{~/.mailrc} by setting the variable
Dave Love <fx@gnu.org>
parents:
diff changeset
324 @code{mail-personal-alias-file}.
Dave Love <fx@gnu.org>
parents:
diff changeset
325
Dave Love <fx@gnu.org>
parents:
diff changeset
326 @findex expand-mail-aliases
Dave Love <fx@gnu.org>
parents:
diff changeset
327 Normally, Emacs expands aliases when you send the message. You do not
Dave Love <fx@gnu.org>
parents:
diff changeset
328 need to expand mail aliases before sending the message, but you can
Dave Love <fx@gnu.org>
parents:
diff changeset
329 expand them if you want to see where the mail will actually go. To do
Dave Love <fx@gnu.org>
parents:
diff changeset
330 this, use the command @kbd{M-x expand-mail-aliases}; it expands all mail
Dave Love <fx@gnu.org>
parents:
diff changeset
331 aliases currently present in the mail headers that hold addresses.
Dave Love <fx@gnu.org>
parents:
diff changeset
332
Dave Love <fx@gnu.org>
parents:
diff changeset
333 If you like, you can have mail aliases expand as abbrevs, as soon as
Dave Love <fx@gnu.org>
parents:
diff changeset
334 you type them in (@pxref{Abbrevs}). To enable this feature, execute the
Dave Love <fx@gnu.org>
parents:
diff changeset
335 following:
Dave Love <fx@gnu.org>
parents:
diff changeset
336
Dave Love <fx@gnu.org>
parents:
diff changeset
337 @example
34922
962646fc3a58 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents: 34151
diff changeset
338 (add-hook 'mail-mode-hook 'mail-abbrevs-setup)
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
339 @end example
Dave Love <fx@gnu.org>
parents:
diff changeset
340
Dave Love <fx@gnu.org>
parents:
diff changeset
341 @noindent
Dave Love <fx@gnu.org>
parents:
diff changeset
342 @findex define-mail-abbrev
Dave Love <fx@gnu.org>
parents:
diff changeset
343 @vindex mail-abbrevs
Dave Love <fx@gnu.org>
parents:
diff changeset
344 This can go in your @file{.emacs} file. @xref{Hooks}. If you use this
Dave Love <fx@gnu.org>
parents:
diff changeset
345 feature, you must use @code{define-mail-abbrev} instead of
Dave Love <fx@gnu.org>
parents:
diff changeset
346 @code{define-mail-alias}; the latter does not work with this package.
Dave Love <fx@gnu.org>
parents:
diff changeset
347 Note that the mail abbreviation package uses the variable
Dave Love <fx@gnu.org>
parents:
diff changeset
348 @code{mail-abbrevs} instead of @code{mail-aliases}, and that all alias
Dave Love <fx@gnu.org>
parents:
diff changeset
349 names are converted to lower case.
Dave Love <fx@gnu.org>
parents:
diff changeset
350
Dave Love <fx@gnu.org>
parents:
diff changeset
351 @kindex C-c C-a @r{(Mail mode)}
Dave Love <fx@gnu.org>
parents:
diff changeset
352 @findex mail-interactive-insert-alias
Dave Love <fx@gnu.org>
parents:
diff changeset
353 The mail abbreviation package also provides the @kbd{C-c C-a}
Dave Love <fx@gnu.org>
parents:
diff changeset
354 (@code{mail-interactive-insert-alias}) command, which reads an alias
Dave Love <fx@gnu.org>
parents:
diff changeset
355 name (with completion) and inserts its definition at point. This is
Dave Love <fx@gnu.org>
parents:
diff changeset
356 useful when editing the message text itself or a header field such as
Dave Love <fx@gnu.org>
parents:
diff changeset
357 @samp{Subject} in which Emacs does not normally expand aliases.
Dave Love <fx@gnu.org>
parents:
diff changeset
358
Dave Love <fx@gnu.org>
parents:
diff changeset
359 Note that abbrevs expand only if you insert a word-separator character
Dave Love <fx@gnu.org>
parents:
diff changeset
360 afterward. However, you can rebind @kbd{C-n} and @kbd{M->} to cause
Dave Love <fx@gnu.org>
parents:
diff changeset
361 expansion as well. Here's how to do that:
Dave Love <fx@gnu.org>
parents:
diff changeset
362
Dave Love <fx@gnu.org>
parents:
diff changeset
363 @smallexample
34922
962646fc3a58 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents: 34151
diff changeset
364 (add-hook 'mail-mode-hook
34151
33df9c2e70bf Don't quote lambdas.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 33839
diff changeset
365 (lambda ()
33df9c2e70bf Don't quote lambdas.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 33839
diff changeset
366 (substitute-key-definition
33df9c2e70bf Don't quote lambdas.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 33839
diff changeset
367 'next-line 'mail-abbrev-next-line
33df9c2e70bf Don't quote lambdas.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 33839
diff changeset
368 mail-mode-map global-map)
33df9c2e70bf Don't quote lambdas.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 33839
diff changeset
369 (substitute-key-definition
33df9c2e70bf Don't quote lambdas.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 33839
diff changeset
370 'end-of-buffer 'mail-abbrev-end-of-buffer
33df9c2e70bf Don't quote lambdas.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 33839
diff changeset
371 mail-mode-map global-map)))
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
372 @end smallexample
Dave Love <fx@gnu.org>
parents:
diff changeset
373
Dave Love <fx@gnu.org>
parents:
diff changeset
374 @node Mail Mode
Dave Love <fx@gnu.org>
parents:
diff changeset
375 @section Mail Mode
Dave Love <fx@gnu.org>
parents:
diff changeset
376 @cindex Mail mode
Dave Love <fx@gnu.org>
parents:
diff changeset
377 @cindex mode, Mail
Dave Love <fx@gnu.org>
parents:
diff changeset
378
Dave Love <fx@gnu.org>
parents:
diff changeset
379 The major mode used in the mail buffer is Mail mode, which is much
Dave Love <fx@gnu.org>
parents:
diff changeset
380 like Text mode except that various special commands are provided on the
Dave Love <fx@gnu.org>
parents:
diff changeset
381 @kbd{C-c} prefix. These commands all have to do specifically with
Dave Love <fx@gnu.org>
parents:
diff changeset
382 editing or sending the message. In addition, Mail mode defines the
Dave Love <fx@gnu.org>
parents:
diff changeset
383 character @samp{%} as a word separator; this is helpful for using the
Dave Love <fx@gnu.org>
parents:
diff changeset
384 word commands to edit mail addresses.
Dave Love <fx@gnu.org>
parents:
diff changeset
385
Dave Love <fx@gnu.org>
parents:
diff changeset
386 Mail mode is normally used in buffers set up automatically by the
Dave Love <fx@gnu.org>
parents:
diff changeset
387 @code{mail} command and related commands. However, you can also switch
38461
23f63206a867 Proofreading fixes from Chris Green <chris_e_green@yahoo.com>.
Eli Zaretskii <eliz@gnu.org>
parents: 37578
diff changeset
388 to Mail mode in a file-visiting buffer. This is a useful thing to do if
23f63206a867 Proofreading fixes from Chris Green <chris_e_green@yahoo.com>.
Eli Zaretskii <eliz@gnu.org>
parents: 37578
diff changeset
389 you have saved the text of a draft message in a file.
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
390
Dave Love <fx@gnu.org>
parents:
diff changeset
391 @menu
Dave Love <fx@gnu.org>
parents:
diff changeset
392 * Mail Sending:: Commands to send the message.
Dave Love <fx@gnu.org>
parents:
diff changeset
393 * Header Editing:: Commands to move to header fields and edit them.
Dave Love <fx@gnu.org>
parents:
diff changeset
394 * Citing Mail:: Copying all or part of a message you are replying to.
Dave Love <fx@gnu.org>
parents:
diff changeset
395 * Mail Mode Misc:: Spell checking, signatures, etc.
Dave Love <fx@gnu.org>
parents:
diff changeset
396 @end menu
Dave Love <fx@gnu.org>
parents:
diff changeset
397
Dave Love <fx@gnu.org>
parents:
diff changeset
398 @node Mail Sending
Dave Love <fx@gnu.org>
parents:
diff changeset
399 @subsection Mail Sending
Dave Love <fx@gnu.org>
parents:
diff changeset
400
Dave Love <fx@gnu.org>
parents:
diff changeset
401 Mail mode has two commands for sending the message you have been
Dave Love <fx@gnu.org>
parents:
diff changeset
402 editing:
Dave Love <fx@gnu.org>
parents:
diff changeset
403
Dave Love <fx@gnu.org>
parents:
diff changeset
404 @table @kbd
Dave Love <fx@gnu.org>
parents:
diff changeset
405 @item C-c C-s
Dave Love <fx@gnu.org>
parents:
diff changeset
406 Send the message, and leave the mail buffer selected (@code{mail-send}).
Dave Love <fx@gnu.org>
parents:
diff changeset
407 @item C-c C-c
Dave Love <fx@gnu.org>
parents:
diff changeset
408 Send the message, and select some other buffer (@code{mail-send-and-exit}).
Dave Love <fx@gnu.org>
parents:
diff changeset
409 @end table
Dave Love <fx@gnu.org>
parents:
diff changeset
410
Dave Love <fx@gnu.org>
parents:
diff changeset
411 @kindex C-c C-s @r{(Mail mode)}
Dave Love <fx@gnu.org>
parents:
diff changeset
412 @kindex C-c C-c @r{(Mail mode)}
Dave Love <fx@gnu.org>
parents:
diff changeset
413 @findex mail-send
Dave Love <fx@gnu.org>
parents:
diff changeset
414 @findex mail-send-and-exit
Dave Love <fx@gnu.org>
parents:
diff changeset
415 @kbd{C-c C-s} (@code{mail-send}) sends the message and marks the mail
Dave Love <fx@gnu.org>
parents:
diff changeset
416 buffer unmodified, but leaves that buffer selected so that you can
Dave Love <fx@gnu.org>
parents:
diff changeset
417 modify the message (perhaps with new recipients) and send it again.
Dave Love <fx@gnu.org>
parents:
diff changeset
418 @kbd{C-c C-c} (@code{mail-send-and-exit}) sends and then deletes the
Dave Love <fx@gnu.org>
parents:
diff changeset
419 window or switches to another buffer. It puts the mail buffer at the
Dave Love <fx@gnu.org>
parents:
diff changeset
420 lowest priority for reselection by default, since you are finished with
Dave Love <fx@gnu.org>
parents:
diff changeset
421 using it. This is the usual way to send the message.
Dave Love <fx@gnu.org>
parents:
diff changeset
422
Dave Love <fx@gnu.org>
parents:
diff changeset
423 In a file-visiting buffer, sending the message does not clear the
Dave Love <fx@gnu.org>
parents:
diff changeset
424 modified flag, because only saving the file should do that. As a
Dave Love <fx@gnu.org>
parents:
diff changeset
425 result, you don't get a warning if you try to send the same message
Dave Love <fx@gnu.org>
parents:
diff changeset
426 twice.
Dave Love <fx@gnu.org>
parents:
diff changeset
427
36263
11db0318031d Remove redundant index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 36178
diff changeset
428 @c This is indexed in mule.texi, node "Recognize Coding".
11db0318031d Remove redundant index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 36178
diff changeset
429 @c @vindex sendmail-coding-system
52979
3649390c0f91 Replace @sc{ascii} and ASCII with @acronym{ASCII}.
Eli Zaretskii <eliz@gnu.org>
parents: 52401
diff changeset
430 When you send a message that contains non-@acronym{ASCII} characters, they need
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
431 to be encoded with a coding system (@pxref{Coding Systems}). Usually
Dave Love <fx@gnu.org>
parents:
diff changeset
432 the coding system is specified automatically by your chosen language
Dave Love <fx@gnu.org>
parents:
diff changeset
433 environment (@pxref{Language Environments}). You can explicitly specify
Dave Love <fx@gnu.org>
parents:
diff changeset
434 the coding system for outgoing mail by setting the variable
36263
11db0318031d Remove redundant index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 36178
diff changeset
435 @code{sendmail-coding-system} (@pxref{Recognize Coding}).
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
436
Dave Love <fx@gnu.org>
parents:
diff changeset
437 If the coding system thus determined does not handle the characters in
Dave Love <fx@gnu.org>
parents:
diff changeset
438 a particular message, Emacs asks you to select the coding system to use,
Dave Love <fx@gnu.org>
parents:
diff changeset
439 showing a list of possible coding systems.
Dave Love <fx@gnu.org>
parents:
diff changeset
440
49923
6977eaede7a8 Remove SMTP section.
Simon Josefsson <jas@extundo.com>
parents: 49906
diff changeset
441 @cindex SMTP
6977eaede7a8 Remove SMTP section.
Simon Josefsson <jas@extundo.com>
parents: 49906
diff changeset
442 @cindex Feedmail
6977eaede7a8 Remove SMTP section.
Simon Josefsson <jas@extundo.com>
parents: 49906
diff changeset
443 @cindex Sendmail
6977eaede7a8 Remove SMTP section.
Simon Josefsson <jas@extundo.com>
parents: 49906
diff changeset
444 @vindex send-mail-function
6977eaede7a8 Remove SMTP section.
Simon Josefsson <jas@extundo.com>
parents: 49906
diff changeset
445 The variable @code{send-mail-function} controls how the default mail
6977eaede7a8 Remove SMTP section.
Simon Josefsson <jas@extundo.com>
parents: 49906
diff changeset
446 user agent sends mail. It should be set to a function. The default
6977eaede7a8 Remove SMTP section.
Simon Josefsson <jas@extundo.com>
parents: 49906
diff changeset
447 is @code{sendmail-send-it}, which delivers mail using the Sendmail
6977eaede7a8 Remove SMTP section.
Simon Josefsson <jas@extundo.com>
parents: 49906
diff changeset
448 installation on the local host. To send mail through a SMTP server,
6977eaede7a8 Remove SMTP section.
Simon Josefsson <jas@extundo.com>
parents: 49906
diff changeset
449 set it to @code{smtpmail-send-it} and set up the Emacs SMTP library
50475
b65aa1d740eb Fix cross references.
Juanma Barranquero <lekktu@gmail.com>
parents: 49923
diff changeset
450 (@pxref{Top,, Sending mail via SMTP,smtpmail}). A third option is
49923
6977eaede7a8 Remove SMTP section.
Simon Josefsson <jas@extundo.com>
parents: 49906
diff changeset
451 @code{feedmail-send-it}, see the commentary section of the
6977eaede7a8 Remove SMTP section.
Simon Josefsson <jas@extundo.com>
parents: 49906
diff changeset
452 @file{feedmail.el} package for more information.
6977eaede7a8 Remove SMTP section.
Simon Josefsson <jas@extundo.com>
parents: 49906
diff changeset
453
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
454 @node Header Editing
Dave Love <fx@gnu.org>
parents:
diff changeset
455 @subsection Mail Header Editing
Dave Love <fx@gnu.org>
parents:
diff changeset
456
Dave Love <fx@gnu.org>
parents:
diff changeset
457 Mail mode provides special commands to move to particular header
Dave Love <fx@gnu.org>
parents:
diff changeset
458 fields and to complete addresses in headers.
Dave Love <fx@gnu.org>
parents:
diff changeset
459
Dave Love <fx@gnu.org>
parents:
diff changeset
460 @table @kbd
Dave Love <fx@gnu.org>
parents:
diff changeset
461 @item C-c C-f C-t
Dave Love <fx@gnu.org>
parents:
diff changeset
462 Move to the @samp{To} header field, creating one if there is none
Dave Love <fx@gnu.org>
parents:
diff changeset
463 (@code{mail-to}).
Dave Love <fx@gnu.org>
parents:
diff changeset
464 @item C-c C-f C-s
Dave Love <fx@gnu.org>
parents:
diff changeset
465 Move to the @samp{Subject} header field, creating one if there is
Dave Love <fx@gnu.org>
parents:
diff changeset
466 none (@code{mail-subject}).
Dave Love <fx@gnu.org>
parents:
diff changeset
467 @item C-c C-f C-c
Dave Love <fx@gnu.org>
parents:
diff changeset
468 Move to the @samp{CC} header field, creating one if there is none
Dave Love <fx@gnu.org>
parents:
diff changeset
469 (@code{mail-cc}).
Dave Love <fx@gnu.org>
parents:
diff changeset
470 @item C-c C-f C-b
Dave Love <fx@gnu.org>
parents:
diff changeset
471 Move to the @samp{BCC} header field, creating one if there is none
Dave Love <fx@gnu.org>
parents:
diff changeset
472 (@code{mail-bcc}).
Dave Love <fx@gnu.org>
parents:
diff changeset
473 @item C-c C-f C-f
Dave Love <fx@gnu.org>
parents:
diff changeset
474 Move to the @samp{FCC} header field, creating one if there is none
Dave Love <fx@gnu.org>
parents:
diff changeset
475 (@code{mail-fcc}).
Dave Love <fx@gnu.org>
parents:
diff changeset
476 @item M-@key{TAB}
Dave Love <fx@gnu.org>
parents:
diff changeset
477 Complete a mailing address (@code{mail-complete}).
Dave Love <fx@gnu.org>
parents:
diff changeset
478 @end table
Dave Love <fx@gnu.org>
parents:
diff changeset
479
Dave Love <fx@gnu.org>
parents:
diff changeset
480 @kindex C-c C-f C-t @r{(Mail mode)}
Dave Love <fx@gnu.org>
parents:
diff changeset
481 @findex mail-to
Dave Love <fx@gnu.org>
parents:
diff changeset
482 @kindex C-c C-f C-s @r{(Mail mode)}
Dave Love <fx@gnu.org>
parents:
diff changeset
483 @findex mail-subject
Dave Love <fx@gnu.org>
parents:
diff changeset
484 @kindex C-c C-f C-c @r{(Mail mode)}
Dave Love <fx@gnu.org>
parents:
diff changeset
485 @findex mail-cc
Dave Love <fx@gnu.org>
parents:
diff changeset
486 @kindex C-c C-f C-b @r{(Mail mode)}
Dave Love <fx@gnu.org>
parents:
diff changeset
487 @findex mail-bcc
Dave Love <fx@gnu.org>
parents:
diff changeset
488 @kindex C-c C-f C-f @r{(Mail mode)}
Dave Love <fx@gnu.org>
parents:
diff changeset
489 @findex mail-fcc
Dave Love <fx@gnu.org>
parents:
diff changeset
490 There are five commands to move point to particular header fields, all
Dave Love <fx@gnu.org>
parents:
diff changeset
491 based on the prefix @kbd{C-c C-f} (@samp{C-f} is for ``field''). They
Dave Love <fx@gnu.org>
parents:
diff changeset
492 are listed in the table above. If the field in question does not exist,
Dave Love <fx@gnu.org>
parents:
diff changeset
493 these commands create one. We provide special motion commands for these
Dave Love <fx@gnu.org>
parents:
diff changeset
494 particular fields because they are the fields users most often want to
Dave Love <fx@gnu.org>
parents:
diff changeset
495 edit.
Dave Love <fx@gnu.org>
parents:
diff changeset
496
Dave Love <fx@gnu.org>
parents:
diff changeset
497 @findex mail-complete
Dave Love <fx@gnu.org>
parents:
diff changeset
498 @kindex M-TAB @r{(Mail mode)}
Dave Love <fx@gnu.org>
parents:
diff changeset
499 While editing a header field that contains mailing addresses, such as
Dave Love <fx@gnu.org>
parents:
diff changeset
500 @samp{To:}, @samp{CC:} and @samp{BCC:}, you can complete a mailing
Dave Love <fx@gnu.org>
parents:
diff changeset
501 address by typing @kbd{M-@key{TAB}} (@code{mail-complete}). It inserts
Dave Love <fx@gnu.org>
parents:
diff changeset
502 the full name corresponding to the address, if it can determine the full
Dave Love <fx@gnu.org>
parents:
diff changeset
503 name. The variable @code{mail-complete-style} controls whether to insert
Dave Love <fx@gnu.org>
parents:
diff changeset
504 the full name, and what style to use, as in @code{mail-from-style}
Dave Love <fx@gnu.org>
parents:
diff changeset
505 (@pxref{Mail Headers}).
Dave Love <fx@gnu.org>
parents:
diff changeset
506
Dave Love <fx@gnu.org>
parents:
diff changeset
507 For completion purposes, the valid mailing addresses are taken to be
37578
2e1126d1c8b2 Explain use of multiple FCC fields.
Richard M. Stallman <rms@gnu.org>
parents: 36263
diff changeset
508 the local users' names plus your personal mail aliases. You can
59798
0816b427495a Don't say just "option" when talking about variables.
Richard M. Stallman <rms@gnu.org>
parents: 54476
diff changeset
509 specify additional sources of valid addresses; see the customization
0816b427495a Don't say just "option" when talking about variables.
Richard M. Stallman <rms@gnu.org>
parents: 54476
diff changeset
510 group @samp{mailalias} to see the variables for customizing this
0816b427495a Don't say just "option" when talking about variables.
Richard M. Stallman <rms@gnu.org>
parents: 54476
diff changeset
511 feature (@pxref{Customization Groups}).
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
512
37578
2e1126d1c8b2 Explain use of multiple FCC fields.
Richard M. Stallman <rms@gnu.org>
parents: 36263
diff changeset
513 If you type @kbd{M-@key{TAB}} in the body of the message,
2e1126d1c8b2 Explain use of multiple FCC fields.
Richard M. Stallman <rms@gnu.org>
parents: 36263
diff changeset
514 @code{mail-complete} invokes @code{ispell-complete-word}, as in Text
2e1126d1c8b2 Explain use of multiple FCC fields.
Richard M. Stallman <rms@gnu.org>
parents: 36263
diff changeset
515 mode.
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
516
Dave Love <fx@gnu.org>
parents:
diff changeset
517 @node Citing Mail
Dave Love <fx@gnu.org>
parents:
diff changeset
518 @subsection Citing Mail
Dave Love <fx@gnu.org>
parents:
diff changeset
519 @cindex citing mail
Dave Love <fx@gnu.org>
parents:
diff changeset
520
Dave Love <fx@gnu.org>
parents:
diff changeset
521 Mail mode also has commands for yanking or @dfn{citing} all or part of
Dave Love <fx@gnu.org>
parents:
diff changeset
522 a message that you are replying to. These commands are active only when
Dave Love <fx@gnu.org>
parents:
diff changeset
523 you started sending a message using an Rmail command.
Dave Love <fx@gnu.org>
parents:
diff changeset
524
Dave Love <fx@gnu.org>
parents:
diff changeset
525 @table @kbd
Dave Love <fx@gnu.org>
parents:
diff changeset
526 @item C-c C-y
Dave Love <fx@gnu.org>
parents:
diff changeset
527 Yank the selected message from Rmail (@code{mail-yank-original}).
Dave Love <fx@gnu.org>
parents:
diff changeset
528 @item C-c C-r
Dave Love <fx@gnu.org>
parents:
diff changeset
529 Yank the region from the Rmail buffer (@code{mail-yank-region}).
Dave Love <fx@gnu.org>
parents:
diff changeset
530 @item C-c C-q
Dave Love <fx@gnu.org>
parents:
diff changeset
531 Fill each paragraph cited from another message
Dave Love <fx@gnu.org>
parents:
diff changeset
532 (@code{mail-fill-yanked-message}).
Dave Love <fx@gnu.org>
parents:
diff changeset
533 @end table
Dave Love <fx@gnu.org>
parents:
diff changeset
534
Dave Love <fx@gnu.org>
parents:
diff changeset
535 @kindex C-c C-y @r{(Mail mode)}
Dave Love <fx@gnu.org>
parents:
diff changeset
536 @findex mail-yank-original
Dave Love <fx@gnu.org>
parents:
diff changeset
537 When mail sending is invoked from the Rmail mail reader using an Rmail
Dave Love <fx@gnu.org>
parents:
diff changeset
538 command, @kbd{C-c C-y} can be used inside the mail buffer to insert
Dave Love <fx@gnu.org>
parents:
diff changeset
539 the text of the message you are replying to. Normally it indents each line
Dave Love <fx@gnu.org>
parents:
diff changeset
540 of that message three spaces and eliminates most header fields. A numeric
Dave Love <fx@gnu.org>
parents:
diff changeset
541 argument specifies the number of spaces to indent. An argument of just
Dave Love <fx@gnu.org>
parents:
diff changeset
542 @kbd{C-u} says not to indent at all and not to eliminate anything.
Dave Love <fx@gnu.org>
parents:
diff changeset
543 @kbd{C-c C-y} always uses the current message from the Rmail buffer,
Dave Love <fx@gnu.org>
parents:
diff changeset
544 so you can insert several old messages by selecting one in Rmail,
Dave Love <fx@gnu.org>
parents:
diff changeset
545 switching to @samp{*mail*} and yanking it, then switching back to
Dave Love <fx@gnu.org>
parents:
diff changeset
546 Rmail to select another.
Dave Love <fx@gnu.org>
parents:
diff changeset
547
Dave Love <fx@gnu.org>
parents:
diff changeset
548 @vindex mail-yank-prefix
Dave Love <fx@gnu.org>
parents:
diff changeset
549 You can specify the text for @kbd{C-c C-y} to insert at the beginning
Dave Love <fx@gnu.org>
parents:
diff changeset
550 of each line: set @code{mail-yank-prefix} to the desired string. (A
Dave Love <fx@gnu.org>
parents:
diff changeset
551 value of @code{nil} means to use indentation; this is the default.)
Dave Love <fx@gnu.org>
parents:
diff changeset
552 However, @kbd{C-u C-c C-y} never adds anything at the beginning of the
Dave Love <fx@gnu.org>
parents:
diff changeset
553 inserted lines, regardless of the value of @code{mail-yank-prefix}.
Dave Love <fx@gnu.org>
parents:
diff changeset
554
Dave Love <fx@gnu.org>
parents:
diff changeset
555 @kindex C-c C-r @r{(Mail mode)}
Dave Love <fx@gnu.org>
parents:
diff changeset
556 @findex mail-yank-region
Dave Love <fx@gnu.org>
parents:
diff changeset
557 To yank just a part of an incoming message, set the region in Rmail to
Dave Love <fx@gnu.org>
parents:
diff changeset
558 the part you want; then go to the @samp{*Mail*} message and type
Dave Love <fx@gnu.org>
parents:
diff changeset
559 @kbd{C-c C-r} (@code{mail-yank-region}). Each line that is copied is
Dave Love <fx@gnu.org>
parents:
diff changeset
560 indented or prefixed according to @code{mail-yank-prefix}.
Dave Love <fx@gnu.org>
parents:
diff changeset
561
Dave Love <fx@gnu.org>
parents:
diff changeset
562 @kindex C-c C-q @r{(Mail mode)}
Dave Love <fx@gnu.org>
parents:
diff changeset
563 @findex mail-fill-yanked-message
Dave Love <fx@gnu.org>
parents:
diff changeset
564 After using @kbd{C-c C-y} or @kbd{C-c C-r}, you can type @kbd{C-c C-q}
Dave Love <fx@gnu.org>
parents:
diff changeset
565 (@code{mail-fill-yanked-message}) to fill the paragraphs of the yanked
Dave Love <fx@gnu.org>
parents:
diff changeset
566 old message or messages. One use of @kbd{C-c C-q} fills all such
Dave Love <fx@gnu.org>
parents:
diff changeset
567 paragraphs, each one individually. To fill a single paragraph of the
Dave Love <fx@gnu.org>
parents:
diff changeset
568 quoted message, use @kbd{M-q}. If filling does not automatically
Dave Love <fx@gnu.org>
parents:
diff changeset
569 handle the type of citation prefix you use, try setting the fill prefix
Dave Love <fx@gnu.org>
parents:
diff changeset
570 explicitly. @xref{Filling}.
Dave Love <fx@gnu.org>
parents:
diff changeset
571
Dave Love <fx@gnu.org>
parents:
diff changeset
572 @node Mail Mode Misc
Dave Love <fx@gnu.org>
parents:
diff changeset
573 @subsection Mail Mode Miscellany
Dave Love <fx@gnu.org>
parents:
diff changeset
574
Dave Love <fx@gnu.org>
parents:
diff changeset
575 @table @kbd
Dave Love <fx@gnu.org>
parents:
diff changeset
576 @item C-c C-t
Dave Love <fx@gnu.org>
parents:
diff changeset
577 Move to the beginning of the message body text (@code{mail-text}).
Dave Love <fx@gnu.org>
parents:
diff changeset
578 @item C-c C-w
Dave Love <fx@gnu.org>
parents:
diff changeset
579 Insert the file @file{~/.signature} at the end of the message text
Dave Love <fx@gnu.org>
parents:
diff changeset
580 (@code{mail-signature}).
Dave Love <fx@gnu.org>
parents:
diff changeset
581 @item C-c C-i @var{file} @key{RET}
Dave Love <fx@gnu.org>
parents:
diff changeset
582 Insert the contents of @var{file} at the end of the outgoing message
Dave Love <fx@gnu.org>
parents:
diff changeset
583 (@code{mail-attach-file}).
Dave Love <fx@gnu.org>
parents:
diff changeset
584 @item M-x ispell-message
38461
23f63206a867 Proofreading fixes from Chris Green <chris_e_green@yahoo.com>.
Eli Zaretskii <eliz@gnu.org>
parents: 37578
diff changeset
585 Perform spelling correction on the message text, but not on citations from
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
586 other messages.
Dave Love <fx@gnu.org>
parents:
diff changeset
587 @end table
Dave Love <fx@gnu.org>
parents:
diff changeset
588
Dave Love <fx@gnu.org>
parents:
diff changeset
589 @kindex C-c C-t @r{(Mail mode)}
Dave Love <fx@gnu.org>
parents:
diff changeset
590 @findex mail-text
Dave Love <fx@gnu.org>
parents:
diff changeset
591 @kbd{C-c C-t} (@code{mail-text}) moves point to just after the header
Dave Love <fx@gnu.org>
parents:
diff changeset
592 separator line---that is, to the beginning of the message body text.
Dave Love <fx@gnu.org>
parents:
diff changeset
593
Dave Love <fx@gnu.org>
parents:
diff changeset
594 @kindex C-c C-w @r{(Mail mode)}
Dave Love <fx@gnu.org>
parents:
diff changeset
595 @findex mail-signature
Dave Love <fx@gnu.org>
parents:
diff changeset
596 @vindex mail-signature
Dave Love <fx@gnu.org>
parents:
diff changeset
597 @kbd{C-c C-w} (@code{mail-signature}) adds a standard piece of text at
Dave Love <fx@gnu.org>
parents:
diff changeset
598 the end of the message to say more about who you are. The text comes
Dave Love <fx@gnu.org>
parents:
diff changeset
599 from the file @file{~/.signature} in your home directory. To insert
Dave Love <fx@gnu.org>
parents:
diff changeset
600 your signature automatically, set the variable @code{mail-signature} to
38461
23f63206a867 Proofreading fixes from Chris Green <chris_e_green@yahoo.com>.
Eli Zaretskii <eliz@gnu.org>
parents: 37578
diff changeset
601 @code{t}; after that, starting a mail message automatically inserts the
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
602 contents of your @file{~/.signature} file. If you want to omit your
Dave Love <fx@gnu.org>
parents:
diff changeset
603 signature from a particular message, delete it from the buffer before
Dave Love <fx@gnu.org>
parents:
diff changeset
604 you send the message.
Dave Love <fx@gnu.org>
parents:
diff changeset
605
Dave Love <fx@gnu.org>
parents:
diff changeset
606 You can also set @code{mail-signature} to a string; then that string
Dave Love <fx@gnu.org>
parents:
diff changeset
607 is inserted automatically as your signature when you start editing a
Dave Love <fx@gnu.org>
parents:
diff changeset
608 message to send. If you set it to some other Lisp expression, the
Dave Love <fx@gnu.org>
parents:
diff changeset
609 expression is evaluated each time, and its value (which should be a
Dave Love <fx@gnu.org>
parents:
diff changeset
610 string) specifies the signature.
Dave Love <fx@gnu.org>
parents:
diff changeset
611
Dave Love <fx@gnu.org>
parents:
diff changeset
612 @findex ispell-message
Dave Love <fx@gnu.org>
parents:
diff changeset
613 You can do spelling correction on the message text you have written
Dave Love <fx@gnu.org>
parents:
diff changeset
614 with the command @kbd{M-x ispell-message}. If you have yanked an
Dave Love <fx@gnu.org>
parents:
diff changeset
615 incoming message into the outgoing draft, this command skips what was
Dave Love <fx@gnu.org>
parents:
diff changeset
616 yanked, but it checks the text that you yourself inserted. (It looks
Dave Love <fx@gnu.org>
parents:
diff changeset
617 for indentation or @code{mail-yank-prefix} to distinguish the cited
Dave Love <fx@gnu.org>
parents:
diff changeset
618 lines from your input.) @xref{Spelling}.
Dave Love <fx@gnu.org>
parents:
diff changeset
619
Dave Love <fx@gnu.org>
parents:
diff changeset
620 @kindex C-c C-i @r{(Mail mode)}
Dave Love <fx@gnu.org>
parents:
diff changeset
621 @findex mail-attach-file
Dave Love <fx@gnu.org>
parents:
diff changeset
622 To include a file in the outgoing message, you can use @kbd{C-x i},
Dave Love <fx@gnu.org>
parents:
diff changeset
623 the usual command to insert a file in the current buffer. But it is
Dave Love <fx@gnu.org>
parents:
diff changeset
624 often more convenient to use a special command, @kbd{C-c C-i}
Dave Love <fx@gnu.org>
parents:
diff changeset
625 (@code{mail-attach-file}). This command inserts the file contents at
Dave Love <fx@gnu.org>
parents:
diff changeset
626 the end of the buffer, after your signature if any, with a delimiter
Dave Love <fx@gnu.org>
parents:
diff changeset
627 line that includes the file name.
Dave Love <fx@gnu.org>
parents:
diff changeset
628
Dave Love <fx@gnu.org>
parents:
diff changeset
629 @vindex mail-mode-hook
Dave Love <fx@gnu.org>
parents:
diff changeset
630 @vindex mail-setup-hook
Dave Love <fx@gnu.org>
parents:
diff changeset
631 Turning on Mail mode (which @kbd{C-x m} does automatically) runs the
Dave Love <fx@gnu.org>
parents:
diff changeset
632 normal hooks @code{text-mode-hook} and @code{mail-mode-hook}.
Dave Love <fx@gnu.org>
parents:
diff changeset
633 Initializing a new outgoing message runs the normal hook
Dave Love <fx@gnu.org>
parents:
diff changeset
634 @code{mail-setup-hook}; if you want to add special fields to your mail
Dave Love <fx@gnu.org>
parents:
diff changeset
635 header or make other changes to the appearance of the mail buffer, use
Dave Love <fx@gnu.org>
parents:
diff changeset
636 that hook. @xref{Hooks}.
Dave Love <fx@gnu.org>
parents:
diff changeset
637
Dave Love <fx@gnu.org>
parents:
diff changeset
638 The main difference between these hooks is just when they are
Dave Love <fx@gnu.org>
parents:
diff changeset
639 invoked. Whenever you type @kbd{M-x mail}, @code{mail-mode-hook} runs
Dave Love <fx@gnu.org>
parents:
diff changeset
640 as soon as the @samp{*mail*} buffer is created. Then the
38461
23f63206a867 Proofreading fixes from Chris Green <chris_e_green@yahoo.com>.
Eli Zaretskii <eliz@gnu.org>
parents: 37578
diff changeset
641 @code{mail-setup} function inserts the default contents of the buffer.
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
642 After these default contents are inserted, @code{mail-setup-hook} runs.
Dave Love <fx@gnu.org>
parents:
diff changeset
643
36178
1f5dd1c73a2a Delete Footnote mode info.
Richard M. Stallman <rms@gnu.org>
parents: 34922
diff changeset
644 @node Mail Amusements
1f5dd1c73a2a Delete Footnote mode info.
Richard M. Stallman <rms@gnu.org>
parents: 34922
diff changeset
645 @section Mail Amusements
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
646
Dave Love <fx@gnu.org>
parents:
diff changeset
647 @findex spook
Dave Love <fx@gnu.org>
parents:
diff changeset
648 @cindex NSA
Dave Love <fx@gnu.org>
parents:
diff changeset
649 @kbd{M-x spook} adds a line of randomly chosen keywords to an outgoing
Dave Love <fx@gnu.org>
parents:
diff changeset
650 mail message. The keywords are chosen from a list of words that suggest
Dave Love <fx@gnu.org>
parents:
diff changeset
651 you are discussing something subversive.
Dave Love <fx@gnu.org>
parents:
diff changeset
652
30806
033b219f3c99 small fixes
Dave Love <fx@gnu.org>
parents: 29107
diff changeset
653 The idea behind this feature is the suspicion that the
033b219f3c99 small fixes
Dave Love <fx@gnu.org>
parents: 29107
diff changeset
654 NSA@footnote{The US National Security Agency.} snoops on
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
655 all electronic mail messages that contain keywords suggesting they might
Dave Love <fx@gnu.org>
parents:
diff changeset
656 find them interesting. (The NSA says they don't, but that's what they
Dave Love <fx@gnu.org>
parents:
diff changeset
657 @emph{would} say.) The idea is that if lots of people add suspicious
Dave Love <fx@gnu.org>
parents:
diff changeset
658 words to their messages, the NSA will get so busy with spurious input
Dave Love <fx@gnu.org>
parents:
diff changeset
659 that they will have to give up reading it all.
Dave Love <fx@gnu.org>
parents:
diff changeset
660
Dave Love <fx@gnu.org>
parents:
diff changeset
661 Here's how to insert spook keywords automatically whenever you start
Dave Love <fx@gnu.org>
parents:
diff changeset
662 entering an outgoing message:
Dave Love <fx@gnu.org>
parents:
diff changeset
663
Dave Love <fx@gnu.org>
parents:
diff changeset
664 @example
36178
1f5dd1c73a2a Delete Footnote mode info.
Richard M. Stallman <rms@gnu.org>
parents: 34922
diff changeset
665 (add-hook 'mail-setup-hook 'spook)
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
666 @end example
Dave Love <fx@gnu.org>
parents:
diff changeset
667
Dave Love <fx@gnu.org>
parents:
diff changeset
668 Whether or not this confuses the NSA, it at least amuses people.
Dave Love <fx@gnu.org>
parents:
diff changeset
669
27209
b6dec6562153 Add Fortune, Footnote.
Dave Love <fx@gnu.org>
parents: 25829
diff changeset
670 @findex fortune-to-signature
b6dec6562153 Add Fortune, Footnote.
Dave Love <fx@gnu.org>
parents: 25829
diff changeset
671 @cindex fortune cookies
36178
1f5dd1c73a2a Delete Footnote mode info.
Richard M. Stallman <rms@gnu.org>
parents: 34922
diff changeset
672 You can use the @code{fortune} program to put a ``fortune cookie''
37578
2e1126d1c8b2 Explain use of multiple FCC fields.
Richard M. Stallman <rms@gnu.org>
parents: 36263
diff changeset
673 message into outgoing mail. To do this, add
36178
1f5dd1c73a2a Delete Footnote mode info.
Richard M. Stallman <rms@gnu.org>
parents: 34922
diff changeset
674 @code{fortune-to-signature} to @code{mail-setup-hook}:
27209
b6dec6562153 Add Fortune, Footnote.
Dave Love <fx@gnu.org>
parents: 25829
diff changeset
675
36178
1f5dd1c73a2a Delete Footnote mode info.
Richard M. Stallman <rms@gnu.org>
parents: 34922
diff changeset
676 @example
1f5dd1c73a2a Delete Footnote mode info.
Richard M. Stallman <rms@gnu.org>
parents: 34922
diff changeset
677 (add-hook 'mail-setup-hook 'fortune-to-signature)
1f5dd1c73a2a Delete Footnote mode info.
Richard M. Stallman <rms@gnu.org>
parents: 34922
diff changeset
678 @end example
27209
b6dec6562153 Add Fortune, Footnote.
Dave Love <fx@gnu.org>
parents: 25829
diff changeset
679
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
680 @node Mail Methods
Dave Love <fx@gnu.org>
parents:
diff changeset
681 @section Mail-Composition Methods
Dave Love <fx@gnu.org>
parents:
diff changeset
682 @cindex mail-composition methods
Dave Love <fx@gnu.org>
parents:
diff changeset
683
30992
d694a3efafe1 (Mail Methods): xref MH, Message.
Dave Love <fx@gnu.org>
parents: 30986
diff changeset
684 @cindex MH mail interface
d694a3efafe1 (Mail Methods): xref MH, Message.
Dave Love <fx@gnu.org>
parents: 30986
diff changeset
685 @cindex Message mode for sending mail
36178
1f5dd1c73a2a Delete Footnote mode info.
Richard M. Stallman <rms@gnu.org>
parents: 34922
diff changeset
686 In this chapter we have described the usual Emacs mode for editing
1f5dd1c73a2a Delete Footnote mode info.
Richard M. Stallman <rms@gnu.org>
parents: 34922
diff changeset
687 and sending mail---Mail mode. Emacs has alternative facilities for
1f5dd1c73a2a Delete Footnote mode info.
Richard M. Stallman <rms@gnu.org>
parents: 34922
diff changeset
688 editing and sending mail, including
30992
d694a3efafe1 (Mail Methods): xref MH, Message.
Dave Love <fx@gnu.org>
parents: 30986
diff changeset
689 MH-E and Message mode, not documented in this manual.
54476
a0a1889ba8bd (Mail Methods): Fix xref to Message manual.
Juri Linkov <juri@jurta.org>
parents: 52979
diff changeset
690 @xref{Top,,MH-E,mh-e, The Emacs Interface to MH}. @xref{Top,,Message,message,
30992
d694a3efafe1 (Mail Methods): xref MH, Message.
Dave Love <fx@gnu.org>
parents: 30986
diff changeset
691 Message Manual}. You can choose any of them as your preferred method.
d694a3efafe1 (Mail Methods): xref MH, Message.
Dave Love <fx@gnu.org>
parents: 30986
diff changeset
692 The commands @code{C-x m}, @code{C-x 4 m} and @code{C-x 5 m} use
38461
23f63206a867 Proofreading fixes from Chris Green <chris_e_green@yahoo.com>.
Eli Zaretskii <eliz@gnu.org>
parents: 37578
diff changeset
693 whichever agent you have specified, as do various other Emacs commands
30992
d694a3efafe1 (Mail Methods): xref MH, Message.
Dave Love <fx@gnu.org>
parents: 30986
diff changeset
694 and facilities that send mail.
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
695
Dave Love <fx@gnu.org>
parents:
diff changeset
696 @vindex mail-user-agent
32313
31f35570f268 gnus-user-agent
Dave Love <fx@gnu.org>
parents: 30992
diff changeset
697 To specify your mail-composition method, customize the variable
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
698 @code{mail-user-agent}. Currently legitimate values include
36178
1f5dd1c73a2a Delete Footnote mode info.
Richard M. Stallman <rms@gnu.org>
parents: 34922
diff changeset
699 @code{sendmail-user-agent} (Mail mode), @code{mh-e-user-agent},
32313
31f35570f268 gnus-user-agent
Dave Love <fx@gnu.org>
parents: 30992
diff changeset
700 @code{message-user-agent} and @code{gnus-user-agent}.
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
701
36178
1f5dd1c73a2a Delete Footnote mode info.
Richard M. Stallman <rms@gnu.org>
parents: 34922
diff changeset
702 If you select a different mail-composition method, the information
1f5dd1c73a2a Delete Footnote mode info.
Richard M. Stallman <rms@gnu.org>
parents: 34922
diff changeset
703 in this chapter about the @samp{*mail*} buffer and Mail mode does not
1f5dd1c73a2a Delete Footnote mode info.
Richard M. Stallman <rms@gnu.org>
parents: 34922
diff changeset
704 apply; the other methods use a different format of text in a different
1f5dd1c73a2a Delete Footnote mode info.
Richard M. Stallman <rms@gnu.org>
parents: 34922
diff changeset
705 buffer, and their commands are different as well.
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 50475
diff changeset
706
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 50475
diff changeset
707 @ignore
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 50475
diff changeset
708 arch-tag: d8a3dfc3-5d87-45c5-a7f2-69871b8e4fd6
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 50475
diff changeset
709 @end ignore