File: sending.texi

package info (click to toggle)
emacs-manual-ja 20.5-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 2,964 kB
  • ctags: 12
  • sloc: lisp: 119; ansic: 69; makefile: 43; sh: 28
file content (1093 lines) | stat: -rw-r--r-- 52,988 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
@c =============================================================
@c = $B85(B $BK](B $BLu(B: $BGt@n@5=<!w$*Cc$N?e=w;RBg3X(B
@c = $B2CI.=$@5(B: $BBgLZFXM:!wBgDM(B.$BC^GHBg3X(B = 1998/11/25
@c = 20.4$B2~D{(B: $BBgLZFXM:!wBgDM(B.$BC^GHBg3X(B = 1999/09/12
@c =============================================================
@c This is part of the Emacs manual.
@c Copyright (C) 1985, 86, 87, 93, 94, 95, 1997 Free Software Foundation, Inc.
@c See file emacs.texi for copying conditions.
@node Sending Mail, Rmail, Picture, Top
@c @chapter Sending Mail
@chapter $B%a%$%k$NAw?.(B
@c @cindex sending mail
@c @cindex mail
@c @cindex message
@cindex $B%a%$%k$NAw?.(B
@cindex $B%a%$%k(B
@cindex $B%a%C%;!<%8(B

@c   To send a message in Emacs, you start by typing a command (@kbd{C-x m})
@c to select and initialize the @samp{*mail*} buffer.  Then you edit the text
@c and headers of the message in this buffer, and type another command
@c (@kbd{C-c C-s} or @kbd{C-c C-c}) to send the message.
Emacs$B$G%a%C%;!<%8$rAw?.$9$k$K$O!"(B
$B$^$:%3%^%s%I!J(B@kbd{C-x m}$B!K$rBG$C$F(B
@samp{*mail*}$B%P%C%U%!$rA*Br$7$F=i4|2=$7$^$9!#(B
$BB3$$$F!"$3$N%P%C%U%!$G%F%-%9%H$H%X%C%@$rJT=8$7!"(B
$B:G8e$KJL$N%3%^%s%I!J(B@kbd{C-c C-s}$B$+(B@kbd{C-c C-c}$B!K$r(B
$BBG$C$F%a%C%;!<%8$rAw?.$7$^$9!#(B

@table @kbd
@item C-x m
@c Begin composing a message to send (@code{compose-mail}).
$BAw?.%a%C%;!<%8$r:n@.$9$k!J(B@code{compose-mail}$B!K!#(B
@item C-x 4 m
@c Likewise, but display the message in another window
@c (@code{compose-mail-other-window}).
$BF1MM$@$,!"JL$N%&%#%s%I%&$K%a%C%;!<%8$rI=<($9$k(B
$B!J(B@code{compose-mail-other-window}$B!K!#(B
@item C-x 5 m
@c Likewise, but make a new frame (@code{compose-mail-other-frame}).
$BF1MM$@$,!"?7$?$K%U%l!<%`$r:n$k(B
$B!J(B@code{compose-mail-other-frame}$B!K!#(B
@item C-c C-s
@c In Mail mode, send the message (@code{mail-send}).
$B%a%$%k!J(Bmail$B!K%b!<%I$G$O!"%a%C%;!<%8$rAw?.$9$k(B
$B!J(B@code{mail-send}$B!K!#(B
@item C-c C-c
@c Send the message and bury the mail buffer (@code{mail-send-and-exit}).
$B%a%C%;!<%8$rAw?.$7%a%$%k%P%C%U%!$rJD$8$k(B
$B!J(B@code{mail-send-and-exit}$B!K!#(B
@end table

@kindex C-x m
@findex compose-mail
@kindex C-x 4 m
@findex compose-mail-other-window
@kindex C-x 5 m
@findex compose-mail-other-frame
@c   The command @kbd{C-x m} (@code{compose-mail}) selects a buffer named
@c @samp{*mail*} and initializes it with the skeleton of an outgoing
@c message.  @kbd{C-x 4 m} (@code{compose-mail-other-window}) selects the
@c @samp{*mail*} buffer in a different window, leaving the previous current
@c buffer visible.  @kbd{C-x 5 m} (@code{compose-mail-other-frame}) creates
@c a new frame to select the @samp{*mail*} buffer.
$B%3%^%s%I(B@kbd{C-x m}$B!J(B@code{compose-mail}$B!K$O!"(B
@samp{*mail*}$B$H$$$&L>A0$N%P%C%U%!$rA*Br$7!"(B
$B$=$N%P%C%U%!Fb$KAw?.$9$k%a%C%;!<%8$N?w7?$r:n$j$^$9!#(B
@kbd{C-x 4 m}$B!J(B@code{compose-mail-other-window}$B!K$O!"(B
$BJL$N%&%#%s%I%&$G(B@samp{*mail*}$B%P%C%U%!$rA*Br$7!"(B
$BD>A0$N%+%l%s%H%P%C%U%!$O8+$($k$h$&$K$7$F$*$-$^$9!#(B
@kbd{C-x 5 m}$B!J(B@code{compose-mail-other-frame}$B!K$O!"(B
$B?7$?$K%U%l!<%`$r:n$C$F(B@samp{*mail*}$B%P%C%U%!$rA*Br$7$^$9!#(B

@c   Because the mail-composition buffer is an ordinary Emacs buffer, you can
@c switch to other buffers while in the middle of composing mail, and switch
@c back later (or never).  If you use the @kbd{C-x m} command again when you
@c have been composing another message but have not sent it, you are asked to
@c confirm before the old message is erased.  If you answer @kbd{n}, the
@c @samp{*mail*} buffer is left selected with its old contents, so you can
@c finish the old message and send it.  @kbd{C-u C-x m} is another way to do
@c this.  Sending the message marks the @samp{*mail*} buffer ``unmodified,''
@c which avoids the need for confirmation when @kbd{C-x m} is next used.
$B%a%$%k:n@.%P%C%U%!$O(BEmacs$B$NIaDL$N%P%C%U%!$J$N$G!"(B
$B%a%$%k$r=q$$$F$$$kESCf$GJL$N%P%C%U%!$K@Z$jBX$($F(B
$B$"$H$GLa$C$F$/$k!J$"$k$$$OLa$i$J$$!K$3$H$,$G$-$^$9!#(B
$B%a%C%;!<%8$r=q$-$+$1$N$^$^Aw?.$7$F$$$J$$$N$K:FEY(B@kbd{C-x m}$B%3%^%s%I$r;H$&$H!"(B
Emacs$B$O8E$$%a%C%;!<%8$r>C$7$F$h$$$+$I$&$+J9$$$F$-$^$9!#(B
@kbd{n}$B$HEz$($k$H!"=q$-$+$1$N8E$$FbMF$N(B@samp{*mail*}$B%P%C%U%!$,(B
$BA*Br$5$l$k$N$G!"8E$$%a%C%;!<%8$r=q$-=*$($FAw?.$G$-$^$9!#(B
@kbd{C-u C-x m}$B$G$b$3$N$h$&$K$G$-$^$9!#(B
$B%a%C%;!<%8$rAw?.$9$k$H(B@samp{*mail*}$B%P%C%U%!$O!XJQ99$J$7!Y$H0u$,IU$1$i$l!"(B
$B$D$.$K(B@kbd{C-x m}$B$r;H$C$F$b3NG'$r5a$a$J$$$h$&$K$7$^$9!#(B

@c   If you are composing a message in the @samp{*mail*} buffer and want to
@c send another message before finishing the first, rename the
@c @samp{*mail*} buffer using @kbd{M-x rename-uniquely} (@pxref{Misc
@c Buffer}).  Then you can use @kbd{C-x m} or its variants described above
@c to make a new @samp{*mail*} buffer.  Once you've done that, you can work
@c with each mail buffer independently.
@samp{*mail*}$B%P%C%U%!$K=q$-$+$1$N%a%C%;!<%8$r;D$7$?$^$^(B
$BJL$N%a%C%;!<%8$rAw?.$7$?$$>l9g$K$O!"(B
@kbd{M-x rename-uniquely}$B$r;H$C$F(B@samp{*mail*}$B%P%C%U%!$rJL$NL>A0$K(B
$BJQ99$7$F$/$@$5$$!J(B@pxref{Misc Buffer}$B!K!#(B
$B$=$7$F!"(B@kbd{C-x m}$B%3%^%s%I$dB>$N%3%^%s%I$G(B
$B?7$7$$(B@samp{*mail*}$B%P%C%U%!$r:n$j$^$9!#(B
$B$3$&$9$l$P8D!9$N%a%$%k%P%C%U%!$rFHN)$KJT=8$G$-$^$9!#(B

@menu
* Format: Mail Format.	     Format of the mail being composed.
* Headers: Mail Headers.     Details of permitted mail header fields.
* Aliases: Mail Aliases.     Abbreviating and grouping mail addresses.
* Mode: Mail Mode.	     Special commands for editing mail being composed.
* Spook: Distracting NSA.    How to distract the NSA's attention.
* Mail Methods::             Using alternative mail-composition methods.
@end menu

@node Mail Format
@c @section The Format of the Mail Buffer
@section $B%a%$%k%P%C%U%!$N7A<0(B

@c   In addition to the @dfn{text} or @dfn{body}, a message has @dfn{header
@c fields} which say who sent it, when, to whom, why, and so on.  Some
@c header fields, such as @samp{Date} and @samp{Sender}, are created
@c automatically when you send the message.  Others, such as the recipient
@c names, must be specified by you in order to send the message properly.
$B%a%C%;!<%8$K$O%F%-%9%H!"$D$^$j!"K\J80J30$K$b!"(B
$BC/$,!"$$$D!"C/$K!"$J$<Aw$C$?$+$J$I$r<($9(B@dfn{$B%X%C%@%U%#!<%k%I(B}$B$,$"$j$^$9!#(B
@samp{Date}$B!JF|IU!K$d(B@samp{Sender}$B!JAw$j<j!K$J$I$N%X%C%@%U%#!<%k%I$O!"(B
$B%a%C%;!<%8$rAw?.$9$k$H$-$K<+F0E*$K:n@.$5$l$^$9!#(B
$B<u$1<j!J08@h!K$J$I$NB>$N%X%C%@%U%#!<%k%I$O!"(B
$B%a%C%;!<%8$,$-$A$s$HAw?.$5$l$k$h$&$K(B
$B$"$J$?<+?H$,;XDj$9$kI,MW$,$"$j$^$9!#(B

@c   Mail mode provides a few commands to help you edit some header fields,
@c and some are preinitialized in the buffer automatically at times.  You can
@c insert and edit header fields using ordinary editing commands.
$B%a%$%k!J(Bmail$B!K%b!<%I$K$O!"(B
$B%X%C%@%U%#!<%k%I$rJT=8$9$k$?$a$N%3%^%s%I72$,$"$j!"(B
$B0lIt$N%X%C%@%U%#!<%k%I$O%P%C%U%!Fb$G<+F0E*$K=i4|2=$5$l$^$9!#(B
$BDL>o$NJT=8%3%^%s%I$r;H$C$F%X%C%@%U%#!<%k%I$KA^F~$7$?$jJT=8$7$?$j$G$-$^$9!#(B

@c   The line in the buffer that says
$B%P%C%U%!Fb$N$D$.$N9T$O!"%X%C%@$H%F%-%9%H$rJ,$1$kFCJL$J6h@Z$j9T$G$9!#(B

@example
--text follows this line--
@end example

@noindent
@c is a special delimiter that separates the headers you have specified from
@c the text.  Whatever follows this line is the text of the message; the
@c headers precede it.  The delimiter line itself does not appear in the
@c message actually sent.  The text used for the delimiter line is controlled
@c by the variable @code{mail-header-separator}.
$B$3$N9T$N$"$H$KB3$/$b$N$O$9$Y$F%a%C%;!<%8$N%F%-%9%H$K$J$j$^$9!#(B
$B$3$N$^$($K$"$k$b$N$O%X%C%@$G$9!#(B
$B<B:]$KAw?.$5$l$k%a%C%;!<%8$K$O!"$3$N6h@Z$j9T<+?H$O4^$^$l$^$;$s!#(B
$B6h@Z$j9T$H$7$F;H$&%F%-%9%H$OJQ?t(B@code{mail-header-separator}$B$G@)8f$7$^$9!#(B

@c Here is an example of what the headers and text in the mail buffer
@c might look like.
$B0J2<$O!"%a%$%k%P%C%U%!Fb$N%X%C%@$H%F%-%9%H$NNc$G$9!#(B

@example
To: gnu@@gnu.org
CC: lungfish@@spam.org, byob@@spam.org
Subject: The Emacs Manual
--Text follows this line--
Please ignore this message.
@end example

@node Mail Headers
@c @section Mail Header Fields
@section $B%a%$%k%X%C%@%U%#!<%k%I(B
@c @cindex headers (of mail message)
@cindex $B%X%C%@%U%#!<%k%I!J%a%$%k%a%C%;!<%8!K(B

@c   A header field in the mail buffer starts with a field name at the
@c beginning of a line, terminated by a colon.  Upper and lower case are
@c equivalent in field names (and in mailing addresses also).  After the
@c colon and optional whitespace comes the contents of the field.
$B%a%$%k%P%C%U%!Fb$N%X%C%@%U%#!<%k%I$O!"(B
$B9TF,$N%U%#!<%k%IL>$G;O$^$j!"%3%m%s(B@samp{:}$B$G6h@Z$i$l$^$9!#(B
$B%U%#!<%k%IL>!J$*$h$S%a%$%k%"%I%l%9!K$G$O!"(B
$BBgJ8;z>.J8;z$N6hJL$O$"$j$^$;$s!#(B
$B%3%m%s$H>J$$$F$b$h$$GrJ8;z$N$"$H$K%U%#!<%k%I$NFbMF$r=q$-$^$9!#(B

@c   You can use any name you like for a header field, but normally people
@c use only standard field names with accepted meanings.  Here is a table
@c of fields commonly used in outgoing messages.
$B%X%C%@%U%#!<%k%I$K$O9%$->!<j$K$I$s$JL>A0$G$b;H$($^$9$,!"(B
$B0lHL$K$O$-$A$s$H0UL#$N$"$kI8=`E*$J%U%#!<%k%IL>$@$1$r;H$$$^$9!#(B
$B0J2<$OAw?.%a%C%;!<%8$G0lHLE*$K;H$o$l$k%U%#!<%k%I$N0lMw$G$9!#(B

@table @samp
@item To
@c This field contains the mailing addresses to which the message is
@c addressed.  If you list more than one address, use commas, not spaces,
@c to separate them.
$B$3$N%U%#!<%k%I$K$O!"(B
$B%a%C%;!<%8$NAwIU@h$G$"$k%a%$%k%"%I%l%9$r=q$/!#(B
1$B$D$h$jB?$/$N%"%I%l%9$r=q$/>l9g$K$O!"(B
$B6uGr$G$O$J$/%3%s%^$G6h@Z$k!#(B

@item Subject
@c The contents of the @samp{Subject} field should be a piece of text
@c that says what the message is about.  The reason @samp{Subject} fields
@c are useful is that most mail-reading programs can provide a summary of
@c messages, listing the subject of each message but not its text.
@samp{Subject}$B%U%#!<%k%I$NFbMF$H$7$F$O!"(B
$B%a%C%;!<%8$,2?$K$D$$$F$N$b$N$+$r=q$/!#(B
@samp{Subject}$B%U%#!<%k%I$,M-8z$JM}M3$O!"(B
$BBgItJ,$N%a%$%k1\Mw%W%m%0%i%`$,!"(B
$B3F%a%C%;!<%8$NK\J8$G$O$J$/(B@samp{Subject}$B$r;H$C$F%a%$%k0lMw$rI=<($9$k$?$a!#(B

@item CC
@c This field contains additional mailing addresses to send the message to,
@c like @samp{To} except that these readers should not regard the message
@c as directed at them.
$B$3$N%U%#!<%k%I$K$O(B@samp{To}$B%U%#!<%k%I$HF1MM$K(B
$B%a%C%;!<%8AwIU@h$NDI2C%a%$%k%"%I%l%9$r=q$/!#(B
$B$?$@$7!"$3$l$i$N%"%I%l%9$K$"$2$i$l$??MC#$O!"(B
$B<+J,08$F$N%a%C%;!<%8$@$H$O;W$o$J$$$h$&$K!#(B

@item BCC
@c This field contains additional mailing addresses to send the message to,
@c which should not appear in the header of the message actually sent.
@c Copies sent this way are called @dfn{blind carbon copies}.
$B$3$N%U%#!<%k%I$K$O%a%C%;!<%8AwIU@h$NDI2C%"%I%l%9$r=q$/$,!"(B
$B<B:]$KAwIU$5$l$k%a%C%;!<%8$N%X%C%@$K$O$3$N%U%#!<%k%I$O4^$^$l$J$$!#(B
$B$3$N$h$&$K$7$FAw?.$7$?%3%T!<$r(B@dfn{$B%V%i%$%s%I%+!<%\%s%3%T!<(B}
$B!J(Bblind carbon copies$B!K$H8F$V!#(B

@vindex mail-self-blind
@c To send a blind carbon copy of every outgoing message to yourself, set
@c the variable @code{mail-self-blind} to @code{t}.
$B$9$Y$F$NAw?.%a%C%;!<%8$N%V%i%$%s%I%+!<%\%s%3%T!<$r<+J,<+?H$KAw$k$K$O!"(B
$BJQ?t(B@code{mail-self-blind}$B$K(B@code{t}$B$r@_Dj$9$k!#(B

@item FCC
@c This field contains the name of one file and directs Emacs to append a
@c copy of the message to that file when you send the message.  If the file
@c is in Rmail format, Emacs writes the message in Rmail format; otherwise,
@c Emacs writes the message in system mail file format.
$B$3$N%U%#!<%k%I$K$O!"%a%C%;!<%8$rAw?.$9$k$?$S$K(B
Emacs$B$,$=$N%3%T!<$rDI2C$7$F$$$/%U%!%$%k$NL>A0$r;XDj$9$k!#(B
$B%U%!%$%k$,(Brmail$B7A<0$G$"$l$P!"(BEmacs$B$O%a%C%;!<%8$r(Brmail$B7A<0$G=q$-9~$`!#(B
$B$=$l0J30$N>l9g!"(BEmacs$B$O%7%9%F%`%a%$%k%U%!%$%k7A<0$G=q$-9~$`!#(B

@vindex mail-archive-file-name
@c To put a fixed file name in the @samp{FCC} field each time you start
@c editing an outgoing message, set the variable
@c @code{mail-archive-file-name} to that file name.  Unless you remove the
@c @samp{FCC} field before sending, the message will be written into that
@c file when it is sent.
$BAw?.%a%C%;!<%8$rJT=8$9$k$?$S$KKh2s7h$^$C$?%U%!%$%kL>$r(B
@samp{FCC}$B%U%#!<%k%I$K;XDj$9$k$K$O!"(B
$BJQ?t(B@code{mail-archive-file-name}$B$K$=$N%U%!%$%kL>$r@_Dj$9$k!#(B
$BAw?.%a%C%;!<%8$+$i(B@samp{FCC}$B%U%#!<%k%I$r:o=|$7$J$$8B$j!"(B
$B%a%C%;!<%8$rAw?.$9$k$?$S$K$3$N%U%!%$%k$K%a%C%;!<%8$,=q$-9~$^$l$k!#(B

@item From
@c Use the @samp{From} field to say who you are, when the account you are
@c using to send the mail is not your own.  The contents of the @samp{From}
@c field should be a valid mailing address, since replies will normally go
@c there.  If you don't specify the @samp{From} field yourself, Emacs uses
@c the value of @code{user-mail-address} as the default.
@samp{From}$B%U%#!<%k%I$O!"%a%$%kAw?.;~$K;H$C$F$$$k%"%+%&%s%H$,<+J,$N$b$N(B
$B$G$J$$>l9g$K!"Aw?.<T$,K\Ev$OC/$J$N$+$r<($9$?$a$KMQ$$$k!#(B
$BJV?.$K$ODL>o$3$N%U%#!<%k%I$,;H$o$l$k$N$G!"(B
@samp{From}$B%U%#!<%k%I$NFbMF$O@5$7$$%a%$%k%"%I%l%9$G$"$k$3$H!#(B
$B<+J,$G(B@samp{From}$B%U%#!<%k%I$r;XDj$7$J$1$l$P!"(B
Emacs$B$O%G%U%)%k%H$GJQ?t(B@code{user-mail-address}$B$NCM$r;H$&!#(B

@item Reply-to
@c Use this field to direct replies to a different address.  Most
@c mail-reading programs (including Rmail) automatically send replies to
@c the @samp{Reply-to} address in preference to the @samp{From} address.
@c By adding a @samp{Reply-to} field to your header, you can work around
@c any problems your @samp{From} address may cause for replies.
$BJV?.$rJL$N%"%I%l%9$KAw$C$F$[$7$$>l9g$K$3$N%U%#!<%k%I$r;H$&!#(B
$B!J(Brmail$B$r4^$`!KBgItJ,$N%a%$%k1\Mw%W%m%0%i%`$O!"(B
@samp{From}$B$N%"%I%l%9$h$j(B@samp{Reply-to}$B$N%"%I%l%9$rM%@h$7$F(B
$B<+F0E*$KJV?.$rAw$k!#(B
@samp{Reply-to}$B%U%#!<%k%I$r%X%C%@$K2C$($F$*$1$P!"(B
@samp{From}$B$N%"%I%l%9$,JV?.;~$K0z$-5/$3$9$G$"$m$&$I$s$JLdBj$G$b2sHr$G$-$k!#(B

@c @cindex @code{REPLYTO} environment variable
@cindex $B4D6-JQ?t(B@code{REPLYTO}
@cindex @code{REPLYTO}$B!J4D6-JQ?t!K(B
@vindex mail-default-reply-to
@c To put a fixed @samp{Reply-to} address into every outgoing message, set
@c the variable @code{mail-default-reply-to} to that address (as a string).
@c Then @code{mail} initializes the message with a @samp{Reply-to} field as
@c specified.  You can delete or alter that header field before you send
@c the message, if you wish.  When Emacs starts up, if the environment
@c variable @code{REPLYTO} is set, @code{mail-default-reply-to} is
@c initialized from that environment variable.
$B$9$Y$F$NAw?.%a%C%;!<%8$N(B@samp{Reply-to}$B%U%#!<%k%I$K7h$^$C$?%"%I%l%9$r(B
$B;XDj$9$k$K$O!"(B
$BJQ?t(B@code{mail-default-reply-to}$B$K!JJ8;zNs$G!K$=$N%"%I%l%9$r@_Dj$9$k!#(B
$B$3$&$9$k$H!"(B@code{mail}$B$O;XDj$5$l$?(B@samp{Reply-to}$B%U%#!<%k%I$r(B
$BIU$1$F%a%C%;!<%8$r=i4|2=$9$k!#(B
$B%a%C%;!<%8$rAw?.$9$k$^$($K!"(B
$BI,MW$J$i!"$3$N%U%#!<%k%I$r:o=|$7$?$jJQ99$7$?$j$G$-$k!#(B
Emacs$B$,F0$-;O$a$?$H$-$K4D6-JQ?t(B@code{REPLYTO}$B$,@_Dj$5$l$F$$$l$P!"(B
$B$=$N4D6-JQ?t$NCM$GJQ?t(B@code{mail-default-reply-to}$B$r=i4|2=$9$k!#(B

@item In-reply-to
@c This field contains a piece of text describing a message you are
@c replying to.  Some mail systems can use this information to correlate
@c related pieces of mail.  Normally this field is filled in by Rmail
@c when you reply to a message in Rmail, and you never need to
@c think about it (@pxref{Rmail}).
$B$3$N%U%#!<%k%I$OJV?.$7$h$&$H$7$F$$$k%a%C%;!<%8$K$D$$$F$N>pJs$r=q$/!#(B
$B%a%$%k%7%9%F%`$K$h$C$F$O!"$3$N>pJs$r;H$C$F%a%$%k$r8_$$$K4XO"IU$1$k!#(B
rmail$B$G%a%C%;!<%8$KJV?.$9$k$H$-$K$O!"(Brmail$B$,<+F0E*$K$3$N%U%#!<%k%I$r(B
$BKd$a$k$N$G!"5$$K$9$kI,MW$O$J$$!J(B@pxref{Rmail}$B!K!#(B

@item References
@c This field lists the message IDs of related previous messages.  Rmail
@c sets up this field automatically when you reply to a message.
$B$3$N%U%#!<%k%I$K$O!"4XO"$9$k0JA0$N%a%C%;!<%8$N%a%C%;!<%8(BID$B0lMw$r=q$/!#(B
rmail$B$G%a%C%;!<%8$KJV?.$9$k$H$-$K$O!"(B
rmail$B$,<+F0E*$K$3$N%U%#!<%k%I$rKd$a$k!#(B
@end table

@c   The @samp{To}, @samp{CC}, @samp{BCC} and @samp{FCC} header fields can
@c appear any number of times, and each such header field can contain
@c multiple addresses, separated by commas.  This way, you can specify any
@c number of places to send the message.  A @samp{To}, @samp{CC}, or
@c @samp{BCC} field can also have continuation lines: one or more lines
@c starting with whitespace, following the starting line of the field, are
@c considered part of the field.  Here's an example of a @samp{To} field
@c with a continuation line:@refill
$B%X%C%@%U%#!<%k%I!"(B@samp{To}$B!"(B@samp{CC}$B!"(B@samp{BCC}$B!"(B@samp{FCC}$B$O!"(B
$B$$$/$D$"$C$F$b$h$/!"$7$+$b!"$3$l$i$N3F%U%#!<%k%I$K$O(B
$B%3%s%^$G6h@Z$C$FJ#?t$N%"%I%l%9$r=q$1$^$9!#(B
$B$3$&$9$l$P!"%a%C%;!<%8$NAwIU@h$r$$$/$D$G$b;XDj$G$-$^$9!#(B
@samp{To}$B!"(B@samp{CC}$B!"(B@samp{BCC}$B%U%#!<%k%I$G$O7QB39T$r;H$($^$9!#(B
$B$3$l$i$N%U%#!<%k%I$KB3$/GrJ8;z$G;O$^$k9T$O!"(B
$B$9$Y$F%U%#!<%k%I$N0lIt$G$"$k$H8+$J$7$^$9!#(B
$B0J2<$O7QB39T$rMQ$$$?(B@samp{To}$B%U%#!<%k%I$NNc$G$9!#(B

@example
@group
To: foo@@here.net, this@@there.net,
  me@@gnu.cambridge.mass.usa.earth.spiral3281
@end group
@end example

@vindex mail-from-style
@c   When you send the message, if you didn't write a @samp{From} field
@c yourself, Emacs puts in one for you.  The variable
@c @code{mail-from-style} controls the format:
$B%a%C%;!<%8$rAw?.$9$k$H$-$K!"(B@samp{From}$B%U%#!<%k%I$r=q$$$F$J$$$H!"(B
Emacs$B$,$+$o$C$F$3$N9`L\$rJd$$$^$9!#(B
$BJQ?t(B@code{mail-from-style}$B$G$=$N=q<0$r!J0J2<$N$h$&$K!K@)8f$7$^$9!#(B

@table @code
@item nil
@c Use just the email address, as in @samp{king@@grassland.com}.
@samp{king@@grassland.com}$B$N$h$&$KEE;R%a%$%k%"%I%l%9$@$1$rJd$&!#(B
@item parens
@c Use both email address and full name, as in @samp{king@@grassland.com (Elvis
@c Parsley)}.
@samp{king@@grassland.com (Elvis Parsley)}$B$N$h$&$K!"(B
$BEE;R%a%$%k%"%I%l%9$H;aL>$rJd$&!#(B
@item angles
@c Use both email address and full name, as in @samp{Elvis Parsley
@c <king@@grassland.com>}.
@samp{Elvis Parsley <king@@grassland.com>}$B$N$h$&$K!"(B
$B;aL>$HEE;R%a%$%k%"%I%l%9$rJd$&!#(B
@item system-default
@c Allow the system to insert the @samp{From} field.
$B%7%9%F%`$K(B@samp{From}$B%U%#!<%k%I$rKd$a$5$;$k!#(B
@end table

@node Mail Aliases
@c @section Mail Aliases
@section $B%a%$%k$NJLL>(B
@c @cindex mail aliases
@c @cindex @file{.mailrc} file
@c @cindex mailrc file
@cindex $B%a%$%k$NJLL>(B
@cindex @file{.mailrc}$B%U%!%$%k(B
@cindex mailrc$B%U%!%$%k(B

@c   You can define @dfn{mail aliases} in a file named @file{~/.mailrc}.
@c These are short mnemonic names which stand for mail addresses or groups of
@c mail addresses.  Like many other mail programs, Emacs expands aliases
@c when they occur in the @samp{To}, @samp{From}, @samp{CC}, @samp{BCC}, and
@c @samp{Reply-to} fields, plus their @samp{Resent-} variants.
@file{~/.mailrc}$B$H$$$&L>A0$N%U%!%$%k$G(B@dfn{$B%a%$%k$NJLL>(B}
$B!J(Bmail alias$B!K$rDj5A$G$-$^$9!#(B
$B%a%$%k$NJLL>$H$O!"J#?t$N%a%$%k%"%I%l%9$d$=$l$i$N%0%k!<%W$KIU$1$?(B
$B3P$($d$9$$C;$$L>A0$N$3$H$G$9!#(B
$BB>$NB?$/$N%a%$%k%W%m%0%i%`$HF1MM$K!"(B
@samp{To}$B!"(B@samp{From}$B!"(B@samp{CC}$B!"(B@samp{BCC}$B!"(B@samp{Reply-to}$B$N%U%#!<%k%I$K(B
$BJLL>$,8=$l$k$H(BEmacs$B$OJLL>$rE83+$7!"(B
$BEv3:%U%#!<%k%I$N@hF,$K(B@samp{Resent-}$B$rIU2C$7$^$9!#(B

@c   To define an alias in @file{~/.mailrc}, write a line in the following
@c format:
@file{~/.mailrc}$B%U%!%$%k$GJLL>$rDj5A$9$k$K$O!"(B
$B0J2<$N$h$&$J7A<0$N9T$r=q$-$^$9!#(B

@example
alias @var{shortaddress} @var{fulladdresses}
@end example

@noindent
@c Here @var{fulladdresses} stands for one or more mail addresses for
@c @var{shortaddress} to expand into.  Separate multiple addresses with
@c spaces; if an address contains a space, quote the whole address with a
@c pair of double-quotes.
@var{fulladdresses}$B$O(B1$B$D0J>e$N%a%$%k%"%I%l%9$G$"$j!"(B
@var{shortaddress}$B$r$=$l$i$N%"%I%l%9$KE83+$7$^$9!#(B
$BJ#?t$N%"%I%l%9$r=q$/>l9g$O!"6uGr$G6h@Z$j$^$9!#(B
$B%"%I%l%9$K6uGr$,4^$^$l$k>l9g$O!"(B
$B%"%I%l%9A4BN$r%@%V%k%/%)!<%H(B@samp{"}$B$G3g$j$^$9!#(B

@c For instance, to make @code{maingnu} stand for
@c @code{gnu@@gnu.org} plus a local address of your own, put in
@c this line:@refill
$B$?$H$($P!"(B@code{gnu@@gnu.org}$B$H$"$J$?$N%m!<%+%k%"%I%l%9$KBP$9$kJLL>$r(B
@code{maingnu}$B$H$9$k$K$O!"(B
$B$D$.$N$h$&$K=q$-$^$9!#(B

@example
alias maingnu gnu@@gnu.org local-gnu
@end example

@c   Emacs also recognizes include commands in @samp{.mailrc} files.
@c They look like this:
$B$^$?!"(BEmacs$B$O(B@samp{.mailrc}$B%U%!%$%kFb$N!V<h$j9~$_!W%3%^%s%I$bG'<1$7$^$9!#(B
$B$D$.$N$h$&$K=q$-$^$9!#(B

@example
source @var{filename}
@end example

@noindent
@c The file @file{~/.mailrc} is used primarily by other mail-reading
@c programs; it can contain various other commands.  Emacs ignores
@c everything in it except for alias definitions and include commands.
$B%U%!%$%k(B@file{~/.mailrc}$B$O<g$KB>$N%a%$%k1\Mw%W%m%0%i%`$,;HMQ$9$k$b$N$G$9!#(B
$B$3$N%U%!%$%k$K$O!"B>$K$b$5$^$6$^$J%3%^%s%I$r;XDj$G$-$^$9!#(B
Emacs$B$O!"$3$N%U%!%$%kFb$NJLL>Dj5A!J(B@samp{alias}$B!K$H(B
$B<h$j9~$_%3%^%s%I!J(B@samp{source}$B!K0J30$O$9$Y$FL5;k$7$^$9!#(B

@findex define-mail-alias
@c   Another way to define a mail alias, within Emacs alone, is with the
@c @code{define-mail-alias} command.  It prompts for the alias and then the
@c full address.  You can use it to define aliases in your @file{.emacs}
@c file, like this:
Emacs$B$NCf$@$1$G%a%$%k$NJLL>$rDj5A$9$kJL$NJ}K!$O!"(B
@code{define-mail-alias}$B%3%^%s%I$r;H$&$3$H$G$9!#(B
$B$3$N%3%^%s%I$O!"JLL>$H40A4$J%"%I%l%9$r=g<!?R$M$F$-$^$9!#(B
$B$3$l$r;H$($P!"$D$.$N$h$&$K$7$F(B
$B8D?M$N(B@file{.emacs}$B%U%!%$%k$GJLL>$rDj5A$G$-$^$9!#(B

@example
(define-mail-alias "maingnu" "gnu@@gnu.org")
@end example

@vindex mail-aliases
@c   @code{define-mail-alias} records aliases by adding them to a
@c variable named @code{mail-aliases}.  If you are comfortable with
@c manipulating Lisp lists, you can set @code{mail-aliases} directly.  The
@c initial value of @code{mail-aliases} is @code{t}, which means that
@c Emacs should read @file{.mailrc} to get the proper value.
 @code{define-mail-alias}$B$O!"(B
@code{mail-aliases}$B$H$$$&JQ?t$KJLL>$rDI2C5-O?$7$^$9!#(B
Lisp$B$N%j%9%HA`:n$K47$l$F$$$k$J$i!"(B
@code{mail-aliases}$B$KD>@\@_Dj$7$F$b$+$^$$$^$;$s!#(B
$BJQ?t(B@code{mail-alias}$B$N=i4|CM$O(B@code{t}$B$H$J$C$F$$$F!"(B
Emacs$B$O(B@file{.mailrc}$B$+$iJLL>Dj5A$rFI$_9~$`$H$$$&;XDj$G$9!#(B

@vindex mail-personal-alias-file
@c   You can specify a different file name to use instead of
@c @file{~/.mailrc} by setting the variable
@c @code{mail-personal-alias-file}.
@file{~/.mailrc}$B$N$+$o$j$K;H$&JL$N%U%!%$%k$NL>A0$O!"(B
$BJQ?t(B@code{mail-personal-alias-file}$B$K@_Dj$7$^$9!#(B

@findex expand-mail-aliases
@c   Normally, Emacs expands aliases when you send the message.  You do not
@c need to expand mail aliases before sending the message, but you can
@c expand them if you want to see where the mail will actually go.  To do
@c this, use the command @kbd{M-x expand-mail-aliases}; it expands all mail
@c aliases currently present in the mail headers that hold addresses.
 $BDL>o!"(BEmacs$B$O%a%C%;!<%8Aw?.;~$KJLL>$rE83+$7$^$9!#(B
$BAw?.$K@h$@$C$F$_$:$+$i%a%$%k%"%I%l%9$rE83+$9$kI,MW$O$"$j$^$;$s$,!"(B
$B%a%$%k$,<B:]$K$I$3$XAw?.$5$l$k$+3NG'$7$?$1$l$PJLL>$rE83+$9$k$3$H$b$G$-$^$9!#(B
$B$=$&$9$k$K$O!"%3%^%s%I(B@kbd{M-x expand-mail-aliases}$B$r;H$$$^$9!#(B
$B%"%I%l%9$rJ];}$9$k%a%$%k%X%C%@$K=q$+$l$F$$$k(B
$B$9$Y$F$N%a%$%k$NJLL>$rE83+$7$^$9!#(B

@c   If you like, you can have mail aliases expand as abbrevs, as soon as
@c you type them in (@pxref{Abbrevs}).  To enable this feature, execute the
@c following:
$B$b$79%$_$K9g$&$J$i!"%a%$%k$NJLL>$rBG$A9~$s$@$i$?$@$A$K(B
$BN,8lE83+$9$k$3$H$b$G$-$^$9!J(B@pxref{Abbrevs}$B!K!#(B
$B$3$N5!G=$r;H$&$K$O$D$.$N$h$&$K$7$^$9!#(B

@example
(add-hook 'mail-setup-hook 'mail-abbrevs-setup)
@end example

@noindent
@findex define-mail-abbrev
@vindex mail-abbrevs
@c This can go in your @file{.emacs} file.  @xref{Hooks}.  If you use this
@c feature, you must use @code{define-mail-abbrev} instead of
@c @code{define-mail-alias}; the latter does not work with this package.
@c Note that the mail abbreviation package uses the variable
@c @code{mail-abbrevs} instead of @code{mail-aliases}, and that all alias
@c names are converted to lower case.
$B$3$l$r8D?M$N(B@file{.emacs}$B%U%!%$%k$KF~$l$F$b$+$^$$$^$;$s!#(B
@xref{Hooks}$B!#(B
$B$3$N5!G=$r;H$&>l9g$K$O!"(B@code{define-mail-alias}$B$N$+$o$j$K(B
@code{define-mail-abbrev}$B$r;H$&I,MW$,$"$j$^$9!#(B
$BA0<T$O!"$3$N%Q%C%1!<%8$G$OF0:n$7$^$;$s!#(B
$B%a%$%kMQN,8l%Q%C%1!<%8$G$O!"(B@code{mail-aliases}$B$N$+$o$j$K(B
$BJQ?t(B@code{mail-abbrevs}$B$r;H$$!"$5$i$K!"(B
$B$9$Y$F$NJLL>$O>.J8;z$KJQ49$5$l$^$9!#(B

@c @kindex C-c C-a @r{(Mail mode)}
@kindex C-c C-a @r{$B!J%a%$%k%b!<%I!K(B}
@findex mail-interactive-insert-alias
@c   The mail abbreviation package also provides the @kbd{C-c C-a}
@c (@code{mail-interactive-insert-alias}) command, which reads an alias
@c name (with completion) and inserts its definition at point.  This is
@c useful when editing the message text itself or a header field such as
@c @samp{Subject} in which Emacs does not normally expand aliases.
$B%a%$%kMQN,8l%Q%C%1!<%8$K$O!"(B@kbd{C-c C-a}
$B!J(B@code{mail-interactive-insert-alias}$B!K%3%^%s%I$b$"$C$F!"(B
$BJLL>$r!JJd40$r;H$C$F!KFI$_<h$j!"$=$NDj5A$r%]%$%s%H0LCV$KA^F~$7$^$9!#(B
$B$3$N5!G=$O!"(BEmacs$B$,JLL>$rDL>oE83+$7$J$$K\J8$d(B@samp{Subject}$B%U%#!<%k%I$J$I(B
$B$rJT=8$7$F$$$k$H$-$KJXMx$G$9!#(B

@c   Note that abbrevs expand only if you insert a word-separator character
@c afterward.  However, you can rebind @kbd{C-n} and @kbd{M->} to cause
@c expansion as well.  Here's how to do that:
$BC18l$N6h@Z$jJ8;z$rA^F~$7$?$"$H$GN,8l$,E83+$5$l$k$3$H$KCm0U$7$F$/$@$5$$!#(B
$B$7$+$7!"(B@kbd{C-n}$B$H(B@kbd{M->}$B$r:FDj5A$7$F(B
$BE83+$,9T$o$l$k$h$&$K@_Dj$9$k$3$H$b$G$-$^$9!#(B
$B$D$.$N$h$&$K$7$^$9!#(B

@smallexample
(add-hook 'mail-setup-hook
          '(lambda ()
             (substitute-key-definition
               'next-line 'mail-abbrev-next-line
               mail-mode-map global-map)
             (substitute-key-definition
               'end-of-buffer 'mail-abbrev-end-of-buffer
               mail-mode-map global-map)))
@end smallexample

@node Mail Mode
@c @section Mail Mode
@section $B%a%$%k%b!<%I(B
@c @cindex Mail mode
@c @cindex mode, Mail
@cindex $B%a%$%k%b!<%I!J(BMail mode$B!K(B
@cindex $B%b!<%I!"(Bmail

@c   The major mode used in the mail buffer is Mail mode, which is much
@c like Text mode except that various special commands are provided on the
@c @kbd{C-c} prefix.  These commands all have to do specifically with
@c editing or sending the message.  In addition, Mail mode defines the
@c character @samp{%} as a word separator; this is helpful for using the
@c word commands to edit mail addresses.
$B%a%$%k%P%C%U%!$G;H$o$l$k%a%8%c!<%b!<%I$O%a%$%k!J(Bmail$B!K%b!<%I$G$9!#(B
$B%F%-%9%H!J(Btext$B!K%b!<%I$K;w$F$$$^$9$,!"(B
$B%W%l%U%#%C%/%9(B@kbd{C-c}$B$G;O$^$kB?$/$NFCJL$J%3%^%s%I$,$"$j$^$9!#(B
$B$3$l$i$N%3%^%s%I$O$9$Y$F%a%C%;!<%8$NJT=8$dAw?.$K4X$9$k$b$N$G$9!#(B
$B$5$i$K!"%a%$%k!J(Bmail$B!K%b!<%I$G$O!"J8;z(B@samp{%}$B$rC18l$N@Z$lL\$HDj5A$7$F$$$^$9!#(B
$B$3$l$O!"C18l%3%^%s%I$r;H$C$F%a%$%k%"%I%l%9$rJT=8$9$k$H$-$KJXMx$G$9!#(B

@c   Mail mode is normally used in buffers set up automatically by the
@c @code{mail} command and related commands.  However, you can also switch
@c to Mail mode in a file-visiting buffer.  That is a useful thing to do if
@c you have saved draft message text in a file.
@code{mail}$B%3%^%s%I$d$=$l$K4XO"$9$k%3%^%s%I$,<+F0E*$K@_Dj$9$k(B
$B%P%C%U%!$G$O!"IaDL!"%a%$%k!J(Bmail$B!K%b!<%I$r;H$$$^$9!#(B
$B$7$+$7!"%U%!%$%k$rK,Ld$7$F$$$k%P%C%U%!$r%a%$%k!J(Bmail$B!K%b!<%I$K(B
$B@Z$jBX$($k$3$H$b$G$-$^$9!#(B
$B$3$l$O!"%a%C%;!<%8$NAp9F$r%U%!%$%k$KJ]B8$7$F$"$k$H$-$J$I$KJXMx$G$9!#(B

@menu
* Mail Sending::        Commands to send the message.
* Header Editing::      Commands to move to header fields and edit them.
* Citing Mail::         Copying all or part of a message you are replying to.
* Mail Mode Misc::      Spell checking, signatures, etc.
@end menu

@node Mail Sending
@c @subsection Mail Sending
@subsection $B%a%$%k$NAw?.(B

@c   Mail mode has two commands for sending the message you have been
@c editing:
$B%a%$%k!J(Bmail$B!K%b!<%I$K$O!"JT=8$7$?%a%C%;!<%8$rAw?.$9$k%3%^%s%I$,(B2$B$D$"$j$^$9!#(B

@table @kbd
@item C-c C-s
@c Send the message, and leave the mail buffer selected (@code{mail-send}).
$B%a%C%;!<%8$rAw?.$7!"%a%$%k%P%C%U%!$OA*Br$7$?$^$^$K$9$k(B
$B!J(B@code{mail-send}$B!K!#(B
@item C-c C-c
@c Send the message, and select some other buffer (@code{mail-send-and-exit}).
$B%a%C%;!<%8$rAw?.$7!"JL$N%P%C%U%!$rA*Br$9$k(B
$B!J(B@code{mail-send-and-exit}$B!K!#(B
@end table

@c @kindex C-c C-s @r{(Mail mode)}
@c @kindex C-c C-c @r{(Mail mode)}
@kindex C-c C-s @r{$B!J%a%$%k%b!<%I!K(B}
@kindex C-c C-c @r{$B!J%a%$%k%b!<%I!K(B}
@findex mail-send
@findex mail-send-and-exit
@c   @kbd{C-c C-s} (@code{mail-send}) sends the message and marks the mail
@c buffer unmodified, but leaves that buffer selected so that you can
@c modify the message (perhaps with new recipients) and send it again.
@c @kbd{C-c C-c} (@code{mail-send-and-exit}) sends and then deletes the
@c window or switches to another buffer.  It puts the mail buffer at the
@c lowest priority for reselection by default, since you are finished with
@c using it.  This is the usual way to send the message.
@kbd{C-c C-s}$B!J(B@code{mail-send}$B!K$O%a%C%;!<%8$rAw?.$7$F(B
$B%a%$%k%P%C%U%!$K!XJQ99$J$7!Y$N0u$rIU$1$^$9(B
$B!JJQ99%U%i%0$r%/%j%"$9$k!K!#(B
$B$7$+$7!"%a%C%;!<%8%P%C%U%!$OA*Br$7$?$^$^$G$9$+$i!"(B
$B%a%C%;!<%8$r=$@5$7$F!J?7$?$J<u$1<j$K!K:FEYAw?.$G$-$^$9!#(B
@kbd{C-c C-c}$B!J(B@code{mail-send-and-exit}$B!K$O%a%C%;!<%8$rAw?.$7$F$+$i!"(B
$B%&%#%s%I%&$r:o=|$9$k$+JL$N%P%C%U%!$K@Z$jBX$($^$9!#(B
$B%a%$%k%P%C%U%!$O;H$$=*$($?$N$G!"(B
$B%G%U%)%k%H$G$O$=$NA*BrM%@hEY$O:GDc$K$J$j$^$9!#(B
$BIaDL$O$3$N%3%^%s%I$G%a%C%;!<%8$rAw?.$7$^$9!#(B

@c   In a file-visiting buffer, sending the message does not clear the
@c modified flag, because only saving the file should do that.  As a
@c result, you don't get a warning if you try to send the same message
@c twice.
$B%U%!%$%k$rK,Ld$7$F$$$k%P%C%U%!$G$O!"%a%C%;!<%8Aw?.8e$G$bJQ99%U%i%0$r(B
$B%/%j%"$7$^$;$s!#(B
$B%U%!%$%k$rJ]B8$7$?>l9g$K$@$1JQ99%U%i%0$r%/%j%"$9$Y$-$@$+$i$G$9!#(B
$B$3$N7k2L!"F10l%a%C%;!<%8$r(B2$B2sAw?.$7$h$&$H$7$F$b7Y9p$O=P$^$;$s!#(B

@vindex sendmail-coding-system
@c   When you send a message that contains non-ASCII characters, they need
@c to be encoded with a coding system (@pxref{Coding Systems}).  Usually
@c the coding system is specified automatically by your chosen language
@c environment (@pxref{Language Environments}).  You can explicitly specify
@c the coding system for outgoing mail by setting the variable
@c @code{sendmail-coding-system}.
$BHs(BASCII$BJ8;z$r4^$`%a%C%;!<%8$rAw?.$9$k$H$-$K$O!"(B
$B$=$l$i$r%3!<%G%#%s%0%7%9%F%`!J(B@pxref{Coding Systems}$B!K(B
$B$GId9f2=$9$kI,MW$,$"$j$^$9!#(B
$BDL>o!"%3!<%G%#%s%0%7%9%F%`$O!"(B
$BA*Br$7$?8@8l4D6-!J(B@pxref{Language Environments}$B!K$K$h$C$F(B
$B<+F0E*$K;XDj$5$l$^$9!#(B
$BJQ?t(B@code{sendmail-coding-system}$B$r@_Dj$9$k$H!"(B
$BAw?.%a%$%k$N%3!<%G%#%s%0%7%9%F%`$rL@<($G$-$^$9!#(B

@c   If the coding system thus determined does not handle the characters in
@c a particular message, Emacs asks you to select the coding system to use,
@c showing a list of possible coding systems.
$B$3$N$h$&$K7h$a$?%3!<%G%#%s%0%7%9%F%`$,!"(B
$B%a%C%;!<%8Fb$NJ8;z$r07$($J$$>l9g$K$O!"(B
Emacs$B$O!"2DG=$J%3!<%G%#%s%0%7%9%F%`$N0lMw$rI=<($7$F!"(B
$B;HMQ$9$k%3!<%G%#%s%0%7%9%F%`$rLd$$9g$o$;$^$9!#(B

@node Header Editing
@c @subsection Mail Header Editing
@subsection $B%a%$%k%X%C%@$NJT=8(B

@c   Mail mode provides special commands to move to particular header
@c fields and to complete addresses in headers.
$B%a%$%k!J(Bmail$B!K%b!<%I$K$O!"FCDj$N%X%C%@%U%#!<%k%I$X0\F0$7$?$j(B
$B%X%C%@$N%"%I%l%9$rJd40$9$kFCJL$J%3%^%s%I$,$"$j$^$9!#(B

@table @kbd
@item C-c C-f C-t
@c Move to the @samp{To} header field, creating one if there is none
@c (@code{mail-to}).
$B%X%C%@%U%#!<%k%I(B@samp{To}$B$X0\F0$9$k!#(B
$B%U%#!<%k%I$,$J$1$l$P:n@.$9$k!J(B@code{mail-to}$B!K!#(B
@item C-c C-f C-s
@c Move to the @samp{Subject} header field, creating one if there is
@c none (@code{mail-subject}).
$B%X%C%@%U%#!<%k%I(B@samp{Subject}$B$X0\F0$9$k!#(B
$B%U%#!<%k%I$,$J$1$l$P:n@.$9$k!J(B@code{mail-subject}$B!K!#(B
@item C-c C-f C-c
@c Move to the @samp{CC} header field, creating one if there is none
@c (@code{mail-cc}).
$B%X%C%@%U%#!<%k%I$X(B@samp{CC}$B0\F0$9$k!#(B
$B%U%#!<%k%I$,$J$1$l$P:n@.$9$k!J(B@code{mail-cc}$B!K!#(B
@item C-c C-f C-b
@c Move to the @samp{BCC} header field, creating one if there is none
@c (@code{mail-bcc}).
$B%X%C%@%U%#!<%k%I(B@samp{BCC}$B$X0\F0$9$k!#(B
$B%U%#!<%k%I$,$J$1$l$P:n@.$9$k!J(B@code{mail-bcc}$B!K!#(B
@item C-c C-f C-f
@c Move to the @samp{FCC} header field, creating one if there is none
@c (@code{mail-fcc}).
$B%X%C%@%U%#!<%k%I(B@samp{FCC}$B$X0\F0$9$k!#(B
$B%U%#!<%k%I$,$J$1$l$P:n@.$9$k!J(B@code{mail-fcc}$B!K!#(B
@item M-@key{TAB}
@c Complete a mailing address (@code{mail-complete}).
$B%a%$%k%"%I%l%9$rJd40$9$k!J(B@code{mail-complete}$B!K!#(B
@end table

@c @kindex C-c C-f C-t @r{(Mail mode)}
@kindex C-c C-f C-t @r{$B!J%a%$%k%b!<%I!K(B}
@findex mail-to
@c @kindex C-c C-f C-s @r{(Mail mode)}
@kindex C-c C-f C-s @r{$B!J%a%$%k%b!<%I!K(B}
@findex mail-subject
@c @kindex C-c C-f C-c @r{(Mail mode)}
@kindex C-c C-f C-c @r{$B!J%a%$%k%b!<%I!K(B}
@findex mail-cc
@c @kindex C-c C-f C-b @r{(Mail mode)}
@kindex C-c C-f C-b @r{$B!J%a%$%k%b!<%I!K(B}
@findex mail-bcc
@c @kindex C-c C-f C-f @r{(Mail mode)}
@kindex C-c C-f C-f @r{$B!J%a%$%k%b!<%I!K(B}
@findex mail-fcc
@c   There are five commands to move point to particular header fields, all
@c based on the prefix @kbd{C-c C-f} (@samp{C-f} is for ``field'').  They
@c are listed in the table above.  If the field in question does not exist,
@c these commands create one.  We provide special motion commands for these
@c particular fields because they are the fields users most often want to
@c edit.
$B%]%$%s%H$rFCDj$N%X%C%@%U%#!<%k%I$K0\F0$9$k%3%^%s%I$O(B5$B$D$"$C$F!"(B
$B$9$Y$F%W%l%U%#%C%/%9(B@kbd{C-c C-f}$B$G;O$^$j$^$9(B
$B!J(B@samp{C-f}$B$O!X%U%#!<%k%I!Y!J(Bfields$B!K$N(Bf$B!K!#(B
$B$3$l$i$O>e$K<($7$F$"$j$^$9!#(B
$BEv3:%U%#!<%k%I$,B8:_$7$J$1$l$P!"(B
$B$3$l$i$N%3%^%s%I$O$=$N%U%#!<%k%I$r:n@.$7$^$9!#(B
$B$3$l$i$NFCDj$N%U%#!<%k%I$K0\F0$9$k%3%^%s%I$rMQ0U$7$?$N$O!"(B
$B$3$l$i$N%U%#!<%k%I$rJT=8$9$k2DG=@-$,9b$$$+$i$G$9!#(B

@findex mail-complete
@c @kindex M-TAB @r{(Mail mode)}
@kindex M-TAB @r{$B!J%a%$%k%b!<%I!K(B}
@c   While editing a header field that contains mailing addresses, such as
@c @samp{To:}, @samp{CC:} and @samp{BCC:}, you can complete a mailing
@c address by typing @kbd{M-@key{TAB}} (@code{mail-complete}).  It inserts
@c the full name corresponding to the address, if it can determine the full
@c name.  The variable @code{mail-complete-style} controls whether to insert
@c the full name, and what style to use, as in @code{mail-from-style}
@c (@pxref{Mail Headers}).
@samp{To:}$B!"(B@samp{CC:}$B!"(B@samp{BCC:}$B$J$I$N%a%$%k%"%I%l%9$r4^$`(B
$B%X%C%@%U%#!<%k%I$rJT=8Cf$K$O!"(B
@kbd{M-@key{TAB}}$B!J(B@code{mail-complete}$B!K$HBG$F$P(B
$B%a%$%k%"%I%l%9$rJd40$G$-$^$9!#(B
$B40A4$JL>A0$,7hDj$G$-$k$J$i$P!"%"%I%l%9$KBP1~$9$k40A4$JL>A0$rA^F~$7$^$9!#(B
$BJQ?t(B@code{mail-from-style}$B$HF1MM$K!"(B
$BJQ?t(B@code{mail-complete-style}$B$O!"(B
$B40A4$JL>A0$rA^F~$9$k$N$+!"$I$N%9%?%$%k$r;H$&$N$+$r@)8f$7$^$9(B
$B!J(B@pxref{Mail Headers}$B!K!#(B

@c   For completion purposes, the valid mailing addresses are taken to be
@c the local users' names plus your personal mail aliases.  You can specify
@c additional sources of valid addresses; use the customization buffer
@c to see the options for this.
$BJd40$N$?$a;H$&@5$7$$%a%$%k%"%I%l%9$O!"(B
$B%m!<%+%k$N%f!<%6!<L>0lMw$H8D?M$N%a%$%k$NJLL>$+$i$H$i$l$^$9!#(B
$B@5$7$$%a%$%k%"%I%l%9$N>pJs8;$rDI2C$9$k$3$H$b$G$-$^$9!#(B
$B$3$l$K4X$9$k%*%W%7%g%s$rD4$Y$k$K$O!"%+%9%?%^%$%:%P%C%U%!$r;H$C$F$/$@$5$$!#(B

@c   If you type @kbd{M-@key{TAB}} in the body of the message, it invokes
@c @code{ispell-complete-word}, as in Text mode.
$B%a%C%;!<%8$NK\J8$G(B@kbd{M-@key{TAB}}$B$HBG$D$H!"(B
$B%F%-%9%H!J(Btext$B!K%b!<%I$HF1MM$K(B@code{ispell-complete-word}$B$r5/F0$7$^$9!#(B

@node Citing Mail
@c @subsection Citing Mail
@subsection $B%a%$%k$N0zMQ(B
@cindex citing mail

@c   Mail mode also has commands for yanking or @dfn{citing} all or part of
@c a message that you are replying to.  These commands are active only when
@c you started sending a message using an Rmail command.
$B%a%$%k!J(Bmail$B!K%b!<%I$K$O!"(B
$BJV?.BP>]$G$"$k%a%C%;!<%8$NA4It$d0lIt$r%d%s%/!"$D$^$j!"(B@dfn{$B0zMQ(B}$B!J(Bcite$B!K(B
$B$9$k$?$a$N%3%^%s%I$b$"$j$^$9!#(B
$B$3$&$7$?%3%^%s%I$O(Brmail$B%3%^%s%I$r(B
$B;H$C$F%a%C%;!<%8$rAw?.$9$k>l9g$K$@$1;H$($^$9!#(B

@table @kbd
@item C-c C-y
@c Yank the selected message from Rmail (@code{mail-yank-original}).
rmail$B$GA*Br$7$?%a%C%;!<%8$r%d%s%/$9$k!J(B@code{mail-yank-original}$B!K!#(B
@item C-c C-r
@c Yank the region from the Rmail buffer (@code{mail-yank-region}).
rmail$B%P%C%U%!$GA*Br$7$?%j!<%8%g%s$r%d%s%/$9$k!J(B@code{mail-yank-region}$B!K!#(B
@item C-c C-q
@c Fill each paragraph cited from another message
@c (@code{mail-fill-yanked-message}).
$BJL$N%a%C%;!<%8$+$i$N0zMQ$rCJMn$K5M$a9~$`(B
$B!J(B@code{mail-fill-yanked-message}$B!K!#(B
@end table

@c @kindex C-c C-y @r{(Mail mode)}
@kindex C-c C-y @r{$B!J%a%$%k%b!<%I!K(B}
@findex mail-yank-original
@c   When mail sending is invoked from the Rmail mail reader using an Rmail
@c command, @kbd{C-c C-y} can be used inside the mail buffer to insert
@c the text of the message you are replying to.  Normally it indents each line
@c of that message three spaces and eliminates most header fields.  A numeric
@c argument specifies the number of spaces to indent.  An argument of just
@c @kbd{C-u} says not to indent at all and not to eliminate anything.
@c @kbd{C-c C-y} always uses the current message from the Rmail buffer,
@c so you can insert several old messages by selecting one in Rmail,
@c switching to @samp{*mail*} and yanking it, then switching back to
@c Rmail to select another.
rmail$B%3%^%s%I$r;H$C$F(Brmail$B%a%$%k%j!<%@$+$i%a%$%kAw?.$r5/F0$7$?$H$-$K$O!"(B
@kbd{C-c C-y}$B$r;H$C$FJV?.BP>]$N%a%C%;!<%8$r%a%$%k%P%C%U%!$KA^F~$G$-$^$9!#(B
$B$3$N%3%^%s%I$O!"0zMQ%a%C%;!<%8$N3F9T$r6uGr(B3$BJ8;z$G;z2<$2$7$F(B
$B$[$H$s$I$N%X%C%@%U%#!<%k%I$r:o=|$7$^$9!#(B
$B?t0z?t$O;z2<$2$9$kJ8;z?t$r;XDj$7$^$9!#(B
@kbd{C-u}$B$@$1$r;XDj$9$k$H!";z2<$2$r$;$:$K%X%C%@%U%#!<%k%I$b:o=|$7$^$;$s!#(B
@kbd{C-c C-y}$B$O!"$D$M$K(Brmail$B%P%C%U%!$N%+%l%s%H%a%C%;!<%8$r;H$$$^$9!#(B
$B$7$?$,$C$F!"(Brmail$B$G(B1$B$D%a%C%;!<%8$rA*Br$7$F$+$i(B
@samp{*mail*}$B%P%C%U%!$K@Z$jBX$($F%d%s%/$7!"(B
$B$^$?!"(Brmail$B$K@Z$jBX$($FJL$N%a%C%;!<%8$rA*Br$7$F$H$$$&$h$&$K$9$l$P!"(B
$BJ#?t$N8E$$%a%C%;!<%8$rA^F~$G$-$^$9!#(B

@vindex mail-yank-prefix
@c   You can specify the text for @kbd{C-c C-y} to insert at the beginning
@c of each line: set @code{mail-yank-prefix} to the desired string.  (A
@c value of @code{nil} means to use indentation; this is the default.)
@c However, @kbd{C-u C-c C-y} never adds anything at the beginning of the
@c inserted lines, regardless of the value of @code{mail-yank-prefix}.
@kbd{C-c C-y}$B$,3F9T$N@hF,$KA^F~$9$kJ8;zNs$O;XDj$G$-$^$9!#(B
$BJQ?t(B@code{mail-yank-prefix}$B$KK>$_$NJ8;zNs$r@_Dj$7$^$9!#(B
$B!JCM$,(B@code{nil}$B$@$H;z2<$2$7$J$$!#%G%U%)%k%H$O$3$l!#!K(B
$B$7$+$7!"(B@kbd{C-u C-c C-y}$B$HBG$C$?>l9g!"(B
$BJQ?t(B@code{mail-yank-prefix}$B$NCM$K4X78$J$/!"(B
$B3F9T$N9TF,$K$O2?$bA^F~$7$^$;$s!#(B

@c @kindex C-c C-r @r{(Mail mode)}
@kindex C-c C-r @r{$B!J%a%$%k%b!<%I!K(B}
@findex mail-yank-region
@c   To yank just a part of an incoming message, set the region in Rmail to
@c the part you want; then go to the @samp{*Mail*} message and type
@c @kbd{C-c C-r} (@code{mail-yank-region}).  Each line that is copied is
@c indented or prefixed according to @code{mail-yank-prefix}.
$BFO$$$?%a%$%k$N0lIt$@$1$r%d%s%/$9$k$K$O!"(B
rmail$B$GL\E*$NItJ,$K%j!<%8%g%s$r@_Dj$7$^$9!#(B
$B$=$7$F(B@samp{*mail*}$B%P%C%U%!$K0\$C$F(B@kbd{C-c C-r}
$B!J(B@code{mail-yank-region}$B!K$HBG$A$^$9!#(B
$B%3%T!<$5$l$k3F9T$O!"(B@code{mail-yank-prefix}$B$K=>$C$F(B
$B;z2<$2$5$l$k$+9TF,$KJ8;zNs$,A^F~$5$l$^$9!#(B

@c @kindex C-c C-q @r{(Mail mode)}
@kindex C-c C-q @r{$B!J%a%$%k%b!<%I!K(B}
@findex mail-fill-yanked-message
@c   After using @kbd{C-c C-y} or @kbd{C-c C-r}, you can type @kbd{C-c C-q}
@c (@code{mail-fill-yanked-message}) to fill the paragraphs of the yanked
@c old message or messages.  One use of @kbd{C-c C-q} fills all such
@c paragraphs, each one individually.  To fill a single paragraph of the
@c quoted message, use @kbd{M-q}.  If filling does not automatically
@c handle the type of citation prefix you use, try setting the fill prefix
@c explicitly.  @xref{Filling}.
@kbd{C-c C-y}$B$d(B@kbd{C-c C-r}$B$r;H$$=*$C$?$i!"(B
@kbd{C-c C-q}$B!J(B@code{mail-fill-yanked-message}$B!K$HBG$F$P(B
$B%d%s%/$7$?8E$$%a%C%;!<%8$rCJMn$K5M$a9~$a$^$9(B
@footnote{$B!ZLuCm![$3$l$O2$J8MQ$N%3%^%s%I$G!"(B
$BF|K\8l$GF~NO$9$k>l9g$K$O$"$^$j4X78$J$$!#(B}$B!#(B
$B0zMQ$7$?%a%C%;!<%8$r(B1$B$D$NCJMn$K5M$a9~$`$K$O!"(B@kbd{M-q}$B$r;H$$$^$9!#(B
$B5M$a9~$_=hM}$G9TF,$NJ8;z$r<+F0E*$K@5$7$/07$($J$$>l9g$K$O!"(B
$B5M$a9~$_@\F,<-$rM[$K;XDj$7$F;n$7$F$/$@$5$$!#(B
@xref{Filling}$B!#(B

@node Mail Mode Misc
@c @subsection Mail Mode Miscellany
@subsection $B$=$NB>$N%a%$%k%b!<%I%3%^%s%I(B

@table @kbd
@item C-c C-t
@c Move to the beginning of the message body text (@code{mail-text}).
$B%a%C%;!<%8$NK\J8$N@hF,$K0\F0$9$k!J(B@code{mail-text}$B!K!#(B
@item C-c C-w
@c Insert the file @file{~/.signature} at the end of the message text
@c (@code{mail-signature}).
$B%U%!%$%k(B@file{~/.signature}$B$r%a%C%;!<%8$NK\J8$NKvHx$KA^F~$9$k(B
$B!J(B@code{mail-signature}$B!K!#(B
@item C-c C-i @var{file} @key{RET}
@c Insert the contents of @var{file} at the end of the outgoing message
@c (@code{mail-attach-file}).
@var{file}$B$NFbMF$rAw?.%a%C%;!<%8$NKvHx$KA^F~$9$k(B
$B!J(B@code{mail-attach-file}$B!K!#(B
@item M-x ispell-message
@c Do spelling correction on the message text, but not on citations from
@c other messages.
$B%a%C%;!<%8$NK\J8$K$D$$$FDV$j$ND{@5$r9T$&!#(B
$B$?$@$7!"B>$N%a%C%;!<%8$+$i$N0zMQItJ,$K$D$$$F$O9T$o$J$$!#(B
@end table

@c @kindex C-c C-t @r{(Mail mode)}
@kindex C-c C-t @r{$B!J%a%$%k%b!<%I!K(B}
@findex mail-text
@c   @kbd{C-c C-t} (@code{mail-text}) moves point to just after the header
@c separator line---that is, to the beginning of the message body text.
@kbd{C-c C-t}$B!J(B@code{mail-text}$B!K$O!"(B
$B%]%$%s%H$r%X%C%@$N6h@Z$j9T$N$"$H!"$D$^$j!"%a%C%;!<%8J8$N@hF,$K0\F0$7$^$9!#(B

@c @kindex C-c C-w @r{(Mail mode)}
@kindex C-c C-w @r{$B!J%a%$%k%b!<%I!K(B}
@findex mail-signature
@vindex mail-signature
@c   @kbd{C-c C-w} (@code{mail-signature}) adds a standard piece of text at
@c the end of the message to say more about who you are.  The text comes
@c from the file @file{~/.signature} in your home directory.  To insert
@c your signature automatically, set the variable @code{mail-signature} to
@c @code{t}; then starting a mail message automatically inserts the
@c contents of your @file{~/.signature} file.  If you want to omit your
@c signature from a particular message, delete it from the buffer before
@c you send the message.
@kbd{C-c C-w}$B!J(B@code{mail-signature}$B!K$O!"(B
$B$"$J$?$r<1JL$9$k$?$a$N7h$^$jJ86g!J%5%$%s!K$r%a%C%;!<%8$NKvHx$KDI2C$7$^$9!#(B
$B$3$N%F%-%9%H$O!"%[!<%`%G%#%l%/%H%j$N%U%!%$%k(B@file{~/.signature}$B$+$i<h$j$^$9!#(B
$B$3$N%5%$%s$r<+F0E*$KA^F~$9$k$h$&$K$9$k$K$O!"(B
$BJQ?t(B@code{mail-signature}$B$K(B@code{t}$B$r@_Dj$7$^$9!#(B
$B$=$&$9$k$H!"%a%$%k%a%C%;!<%8$K<+F0E*$K(B
$B%U%!%$%k(B@file{~/.signature}$B$NFbMF$,IU2C$5$l$^$9!#(B
$BFCDj$N%a%C%;!<%8$K%5%$%s$rIU$1$?$/$J$1$l$P!"(B
$BAw?.A0$K%P%C%U%!Fb$G:o=|$7$F$/$@$5$$!#(B

@c   You can also set @code{mail-signature} to a string; then that string
@c is inserted automatically as your signature when you start editing a
@c message to send.  If you set it to some other Lisp expression, the
@c expression is evaluated each time, and its value (which should be a
@c string) specifies the signature.
$BJQ?t(B@code{mail-signature}$B$KJ8;zNs$r;XDj$9$k$3$H$b$G$-$^$9!#(B
$B$9$k$H!"Aw?.%a%C%;!<%8$rJT=8$7;O$a$k$H!"(B
$B$=$NJ8;zNs$O%5%$%s$H$7$F<+F0E*$KA^F~$5$l$^$9!#(B
$B$3$NJQ?t$K$=$l0J30$N(BLisp$B<0$r;XDj$9$k$H!"(B
$BKh2s$=$N<0$,I>2A$5$l$=$NCM!JJ8;zNs$G$"$k$3$H!K$,%5%$%s$K$J$j$^$9!#(B

@findex ispell-message
@c   You can do spelling correction on the message text you have written
@c with the command @kbd{M-x ispell-message}.  If you have yanked an
@c incoming message into the outgoing draft, this command skips what was
@c yanked, but it checks the text that you yourself inserted.  (It looks
@c for indentation or @code{mail-yank-prefix} to distinguish the cited
@c lines from your input.)  @xref{Spelling}.
$B%3%^%s%I(B@kbd{M-x ispell-message}$B$G!"(B
$B=q$-$"$2$?%a%C%;!<%8$NDV$j$rD{@5$G$-$^$9!#(B
$B$3$N%3%^%s%I$O!"0zMQItJ,$K$D$$$F$OD4$Y$^$;$s$,!"(B
$B$"$J$?<+?H$,BG$A9~$s$@%F%-%9%H$O8!::$7$^$9!#(B
$B!J;z2<$2$d(B@code{mail-yank-prefix}$B$rMxMQ$7$F!"(B
$B0zMQItJ,$H$"$J$?$NF~NOItJ,$r6hJL$7$^$9!#!K(B
@xref{Spelling}$B!#(B

@c @kindex C-c C-i @r{(Mail mode)}
@kindex C-c C-i @r{$B!J%a%$%k%b!<%I!K(B}
@findex mail-attach-file
@c   To include a file in the outgoing message, you can use @kbd{C-x i},
@c the usual command to insert a file in the current buffer.  But it is
@c often more convenient to use a special command, @kbd{C-c C-i}
@c (@code{mail-attach-file}).  This command inserts the file contents at
@c the end of the buffer, after your signature if any, with a delimiter
@c line that includes the file name.
$BAw?.%a%C%;!<%8$K%U%!%$%k$rIU2C$9$k$K$O!"(B
$B%+%l%s%H%P%C%U%!$K%U%!%$%k$rA^F~$9$kIaDL$N%3%^%s%I(B@kbd{C-x i}$B$r;H$$$^$9!#(B
$B$7$+$7!"@lMQ%3%^%s%I(B@kbd{C-c C-i}$B!J(B@code{mail-attach-file}$B!K(B
$B$r;H$&$[$&$,$h$jJXMx$J$3$H$,$7$P$7$P$"$j$^$9!#(B
$B$3$N%3%^%s%I$O!";XDj$7$?%U%!%$%k$NFbMF$r%P%C%U%!$N:G8e!"(B
$B%5%$%s$,$"$l$P$=$N$&$7$m$K!"%U%!%$%kL>$r4^$s$@6h@Z$j9T$rIU$1$FA^F~$7$^$9!#(B

@vindex mail-mode-hook
@vindex mail-setup-hook
@c   Turning on Mail mode (which @kbd{C-x m} does automatically) runs the
@c normal hooks @code{text-mode-hook} and @code{mail-mode-hook}.
@c Initializing a new outgoing message runs the normal hook
@c @code{mail-setup-hook}; if you want to add special fields to your mail
@c header or make other changes to the appearance of the mail buffer, use
@c that hook.  @xref{Hooks}.
$B!J(B@kbd{C-x m}$B$,<+F0E*$K9T$&$h$&$K!K%a%$%k!J(Bmail$B!K%b!<%I$r%*%s$K$9$k$H!"(B
$B%N!<%^%k%U%C%/!"(B@code{text-mode-hook}$B$H(B@code{mail-mode-hook}$B$H$,(B
$B<B9T$5$l$^$9!#(B
$B?7$?$JAw?.%a%C%;!<%8$r=i4|2=$9$k$H$-$K$O!"(B
$B%N!<%^%k%U%C%/(B@code{mail-setup-hook}$B$r<B9T$7$^$9!#(B
$B%a%$%k%X%C%@$KFCJL$J%U%#!<%k%I$rDI2C$7$?$j(B
$B%a%$%k%P%C%U%!$N308+$rJQ$($?$$$J$i$P!"$3$l$i$N%U%C%/$r;H$C$F$/$@$5$$!#(B
@xref{Hooks}$B!#(B

@c   The main difference between these hooks is just when they are
@c invoked.  Whenever you type @kbd{M-x mail}, @code{mail-mode-hook} runs
@c as soon as the @samp{*mail*} buffer is created.  Then the
@c @code{mail-setup} function puts in the default contents of the buffer.
@c After these default contents are inserted, @code{mail-setup-hook} runs.
$B$3$l$i$N%U%C%/$N<g$J0c$$$O!"$I$N;~E@$G5/F0$5$l$k$+$G$9!#(B
@kbd{M-x mail}$B$HBG80$9$k$H!"(B@samp{*mail*}$B%P%C%U%!$r:n@.8e$?$@$A$K(B
@code{mail-mode-hook}$B$,<B9T$5$l$^$9!#(B
$BB3$$$F(B@code{mail-setup}$B4X?t$,%P%C%U%!$K%G%U%)%k%H$NFbMF$rF~$l$^$9!#(B
$B$=$N$"$H$G!"(B@code{mail-setup-hook}$B$,<B9T$5$l$^$9!#(B

@node Distracting NSA
@c @section Distracting the NSA
@section NSA$B$rG:$^$9$K$O(B

@findex spook
@cindex NSA
@c   @kbd{M-x spook} adds a line of randomly chosen keywords to an outgoing
@c mail message.  The keywords are chosen from a list of words that suggest
@c you are discussing something subversive.
@kbd{M-x spook}$B$O!"%i%s%@%`$KA*$s$@%-!<%o!<%I$+$i@.$k9T$r(B
$BAw?.%a%C%;!<%8$KIU$12C$($^$9!#(B
$BGK2u3hF0$r2h:v$7$F$$$k$H;W$o$;$k$h$&$JC18l$N0lMwI=$+$i%-!<%o!<%I$rA*$S$^$9!#(B

@c   The idea behind this feature is the suspicion that the NSA snoops on
@c all electronic mail messages that contain keywords suggesting they might
@c find them interesting.  (The NSA says they don't, but that's what they
@c @emph{would} say.)  The idea is that if lots of people add suspicious
@c words to their messages, the NSA will get so busy with spurious input
@c that they will have to give up reading it all.
$B$3$N5!G=$N;WA[E*GX7J$K$O!"(BNSA
@footnote{$B!ZLuCm![(BNSA$B$H$O(BNational Security Agency
$B!J9g=09q9q2H0BA4J]>c6I!K$NN,!#(B
$B9g=09q$N8x1W$K4p$E$$$FI,MW$K$h$j!"(B
$BEEOC$d(BInternet$B$J$I$NEpD0$r9T$C$F$$$k$H1=$5$l$F$$$k!#(B
$B$3$NItJ,$OF|K\9qFb$@$1$G%a%$%k$r$d$j$H$j$9$k8B$j$K$*$$$F$O(B
$B$"$^$j4X78$O$J$$$@$m$&!#(B}
$B$O<+J,$?$A$,4X?4$r;}$DFCDj$N%-!<%o!<%I$r(B
$B4^$s$@$9$Y$F$NEE;R%a%$%k$rEpD0!JEpFI!)!K$7$F$$$k$N$G$O$J$$$+$H$$$&(B
$B5?$$$,$"$j$^$9!#(B
$B!J(BNSA$B$OH]Dj$7$F$$$^$9$,!"H`$i$J$i(B@emph{$BEvA3(B}$B$=$&$$$$D%$k$@$m$&!#!K(B
$BB?$/$N?M!9$,2x$7$$C18l$r%a%C%;!<%8$KIU2C$7$F$*$1$P!"(B
NSA$B$O$3$&$7$?5?$o$7$$%a%$%k$NEpD0$GHs>o$KK;$7$/$J$j!"(B
$B$*$7$^$$$K$O$3$&$7$?9T0Y$r;_$a$k$N$G$O$J$$$+$H9M$($?$+$i$G$9!#(B

@c   Here's how to insert spook keywords automatically whenever you start
@c entering an outgoing message:
$B0J2<$O!"Aw?.%a%C%;!<%8$rJT=8$7;O$a$k$H(B
$B<+F0E*$K2x$7$$%-!<%o!<%I$rIU$12C$($kJ}K!$G$9!#(B

@example
(add-hook 'mail-setup-hook 'spook)
@end example

@c   Whether or not this confuses the NSA, it at least amuses people.
$B$3$l$G(BNSA$B$,:.Mp$7$F$b$7$J$/$F$b!"(B
$B>/$J$/$H$b?M!9$r3Z$7$^$;$k$3$H$,$G$-$^$9!#(B

@node Mail Methods
@c @section Mail-Composition Methods
@section $B%a%$%k:n@.J}<0(B
@c @cindex mail-composition methods
@cindex $B%a%$%k:n@.J}<0(B

@c   This chapter describes the usual Emacs mode for editing and sending
@c mail---Mail mode.  Emacs has alternative facilities for editing and
@c sending mail, including MH-E and Message mode, not documented in this
@c manual.  You can choose any of them as your preferred method.  The
@c commands @code{C-x m}, @code{C-x 4 m} and @code{C-x 5 m} use whichever
@c agent you have specified.  So do various other Emacs commands and
@c facilities that send mail.
$BK\>O$G$O!"%a%$%k$rJT=8!?Aw?.$9$k$?$a$N(BEmacs$B$NDL>o$N%b!<%I!"(B
$B%a%$%k!J(Bmail$B!K%b!<%I$K$D$$$F@bL@$7$F$-$^$7$?!#(B
$BK\=q$G$O$U$l$F$$$^$;$s$,!"(B
MH-E$B$d%a%C%;!<%8!J(Bmessage$B!K%b!<%I$r4^$`(B
$BJL$N%a%$%kJT=8!?Aw?.5!G=$b(BEmacs$B$K$O$"$j$^$9!#(B
$B%3%^%s%I!"(B@code{C-x m}$B!"(B@code{C-x 4 m}$B!"(B@code{C-x 5 m}$B$O!"(B
$B;XDj$5$l$?$I$NJ}<0$K$bBP1~$7$F$$$^$9!#(B
$B$G$9$+$i!"%a%$%k$rAw?.$9$k(BEmacs$B$N$5$^$6$^$J%3%^%s%I$d5!G=$rMxMQ$G$-$^$9!#(B

@vindex mail-user-agent
@c   To specify your mail-composition method, set the variable
@c @code{mail-user-agent}.  Currently legitimate values include
@c @code{sendmail-user-agent}, @code{mh-e-user-agent}, and
@c @code{message-user-agent}.
$B%a%$%k:n@.J}<0$r;XDj$9$k$K$O!"JQ?t(B@code{mail-user-agent}$B$r@_Dj$7$^$9!#(B
$B8=;~E@$G@5$7$$@_Dj$H$7$FG'$a$i$l$k$b$N$O!"(B
@code{sendmail-user-agent}$B!"(B@code{mh-e-user-agent}$B!"(B
@code{message-user-agent}$B$G$9!#(B

@c   If you select a different mail-composition method, the information in
@c this chapter about the @samp{*mail*} buffer and Mail mode does not
@c apply; other methods may use completely different commands with a
@c different format in a differently named buffer.
$B0[$J$k%a%$%k:n@.J}<0$rA*Br$9$k$H!"K\>O$G=R$Y$?(B@samp{*mail*}$B%P%C%U%!$d(B
$B%a%$%k!J(Bmail$B!K%b!<%I$K$D$$$F$N@bL@$OLr$KN)$A$^$;$s!#(B
$B0[$J$C$?%a%$%k:n@.J}<0$G$O!"(B
$B0[$J$C$?L>A0$N%P%C%U%!$G0[$J$C$?7A<0$N(B
$B$^$C$?$/0[$J$C$?%3%^%s%I$r;H$&$+$b$7$l$J$$$+$i$G$9!#(B