*** empty log message ***
[gnus] / texi / message.texi
1 \input texinfo                  @c -*-texinfo-*-
2
3 @setfilename message.info
4 @settitle Message Manual
5 @synindex fn cp
6 @synindex vr cp
7 @synindex pg cp
8 @iftex
9 @finalout
10 @end iftex
11 @setchapternewpage odd
12
13 @ifinfo
14
15 This file documents Messa, the Emacs message composition mode.
16
17 Copyright (C) 1996 Free Software Foundation, Inc.
18
19 Permission is granted to make and distribute verbatim copies of
20 this manual provided the copyright notice and this permission notice
21 are preserved on all copies.
22
23 @ignore
24 Permission is granted to process this file through Tex and print the
25 results, provided the printed document carries copying permission
26 notice identical to this one except for the removal of this paragraph
27 (this paragraph not being relevant to the printed manual).
28
29 @end ignore
30 Permission is granted to copy and distribute modified versions of this
31 manual under the conditions for verbatim copying, provided also that the
32 entire resulting derived work is distributed under the terms of a
33 permission notice identical to this one.
34
35 Permission is granted to copy and distribute translations of this manual
36 into another language, under the above conditions for modified versions.
37 @end ifinfo
38
39 @tex
40
41 @titlepage
42 @title Message Manual
43
44 @author by Lars Magne Ingebrigtsen
45 @page
46
47 @vskip 0pt plus 1filll
48 Copyright @copyright{} 1996 Free Software Foundation, Inc. 
49
50 Permission is granted to make and distribute verbatim copies of
51 this manual provided the copyright notice and this permission notice
52 are preserved on all copies.
53
54 Permission is granted to copy and distribute modified versions of this
55 manual under the conditions for verbatim copying, provided that the
56 entire resulting derived work is distributed under the terms of a
57 permission notice identical to this one.
58
59 Permission is granted to copy and distribute translations of this manual
60 into another language, under the above conditions for modified versions.
61
62 @end titlepage
63 @page
64
65 @end tex
66
67 @node Top
68 @top Message
69
70 All message composition (both mail and news) takes place in Message mode
71 buffers.
72
73 @menu
74 * Interface::         Setting up message buffers.
75 * Commands::          Commands you can execute in message mode buffers.
76 * Variables::         Customizing the message buffers.
77 * Index::             Variable, function and concept index.
78 * Key Index::         List of Message mode keys.
79 @end menu
80
81
82 @node Interface
83 @chapter Interface
84
85 When a program (or a person) wants to respond to a message -- reply,
86 follow up, forward, cancel -- the program (or person) should just put
87 point in the buffer where the message is and call the required command.
88 @code{Message} will then pop up a new @code{message} mode buffer with
89 appropriate headers filled out, and the user can edit the message before
90 sending it.
91
92 @menu
93 * New Mail Message::     Editing a brand new mail message.
94 * New News Message::     Editing a brand new news message.
95 * Reply::                Replying via mail.
96 * Wide Reply::           Responding to all people via mail.
97 * Followup::             Following up via news.
98 * Canceling News::       Canceling a news article.
99 * Superseding::          Superseding a message.
100 * Forwarding::           Forwarding a message via news or mail.
101 * Resending::            Resending a mail message.
102 * Bouncing::             Bouncing a mail message.
103 @end menu
104
105
106 @node New Mail Message
107 @section New Mail Message
108
109 @findex message-mail
110 The @code{message-mail} command pops up a new message buffer.  
111
112 Two optional parameters are accepted: The first will be used as the
113 @code{To} header and the second as the @code{Subject} header.  If these
114 aren't present, those two headers will be empty.
115
116
117 @node New News Message
118 @section New News Message
119
120 @findex message-news
121 The @code{message-news} command pops up a new message buffer.  
122
123 This function accepts two optional parameters.  The first will be used
124 as the @code{Newsgroups} header and the second as the @code{Subject}
125 header.  If these aren't present, those two headers will be empty.
126
127
128 @node Reply
129 @section Reply
130
131 @findex message-reply
132 The @code{message-reply} function pops up a message buffer that's a
133 reply to the message in the current buffer.
134
135 @vindex message-reply-to-function
136 Message uses the normal methods to determine where replies are to go,
137 but you can change the behavior to suit your needs by fiddling with the
138 @code{message-reply-to-function} variable.
139
140 If you want the replies to go to the @code{Sender} instead of the
141 @code{From}, you could do something like this:
142
143 @lisp
144 (setq message-reply-to-function
145       (lambda ()
146        (cond ((equal (mail-fetch-field "from") "somebody")
147                (mail-fetch-field "sender"))     
148              (t 
149               nil))))
150 @end lisp
151
152 This function will be called narrowed to the head of the article that is
153 being replied to.
154
155 As you can see, this function should return a string if it has an
156 opinion as to what the To header should be.  If it does not, it should
157 just return @code{nil}, and the normal methods for determining the To
158 header will be used.
159
160 This function can also return a list.  In that case, each list element
161 should be a cons, where the car should be the name of an header
162 (eg. @code{Cc}) and the cdr should be the header value
163 (eg. @samp{larsi@@ifi.uio.no}).  All these headers will be inserted into
164 the head of the outgoing mail. 
165
166
167 @node Wide Reply
168 @section Wide Reply
169
170 @findex message-wide-reply
171 The @code{message-wide-reply} pops up a message buffer that's a wide
172 reply to the message in the current buffer.
173
174 @vindex message-wide-reply-to-function
175 Message uses the normal methods to determine where wide replies are to go,
176 but you can change the behavior to suit your needs by fiddling with the
177 @code{message-wide-reply-to-function}.  It is used in the same way as
178 @code{message-reply-to-function} (@pxref{Reply}). 
179
180
181 @node Followup
182 @section Followup
183
184 @findex message-followup
185 The @code{message-followup} command pops up a message buffer that's a
186 followup to the message in the current buffer.
187
188 @vindex message-followup-to-function
189 Message uses the normal methods to determine where followups are to go,
190 but you can change the behavior to suit your needs by fiddling with the
191 @code{message-followup-to-function}.  It is used in the same way as
192 @code{message-reply-to-function} (@pxref{Reply}).
193
194 @vindex message-use-followup-to
195 The @code{message-use-followup-to} variable says what to do about
196 @code{Followup-To} headers.  If it is @code{use}, always use the value.
197 If it is @code{ask} (which is the default), ask whether to use the
198 value.  If it is @code{t}, use the value unless it is @samp{poster}.  If
199 it is @code{nil}, don't use the value.
200
201
202 @node Canceling News
203 @section Canceling News
204
205 @findex message-cancel-news
206 The @code{message-cancel-news} command cancels the article in the
207 current buffer.
208
209
210 @node Superseding
211 @section Superseding
212
213 @findex message-supersede
214 The @code{message-supersede} command pops up a message buffer that will
215 supersede the message in the current buffer.
216
217 @vindex message-ignored-supersedes-headers
218 Headers matching the @code{message-ignored-supersedes-headers} are
219 removed before popping up the new message buffer.  The default is
220 @samp{^Path:\\|^Date\\|^NNTP-Posting-Host:\\|^Xref:\\|^Lines:\\|^Received:\\|^X-From-Line:\\|Return-Path:}.
221
222
223
224 @node Forwarding
225 @section Forwarding
226
227 @findex message-forward
228 The @code{message-forward} command pops up a message buffer to forward
229 the message in the current buffer.  If given a prefix, forward using
230 news.
231
232 @table @code
233 @item message-forward-start-separator
234 @vindex message-forward-start-separator
235 Delimiter inserted before forwarded messages.  The default is
236 @samp{------- Start of forwarded message -------\n}. 
237
238 @vindex message-forward-end-separator
239 @item message-forward-end-separator
240 @vindex message-forward-end-separator
241 Delimiter inserted after forwarded messages.  The default is
242 @samp{------- End of forwarded message -------\n}. 
243
244 @item message-signature-before-forwarded-message
245 @vindex message-signature-before-forwarded-message
246 If this variable is @code{t}, which it is by default, your personal
247 signature will be inserted before the forwarded message.  If not, the
248 forwarded message will be inserted first in the new mail.
249
250 @item message-forward-included-headers
251 @vindex message-forward-included-headers
252 Regexp matching header lines to be included in forwarded messages.  
253
254 @end table
255
256
257 @node Resending
258 @section Resending
259
260 @findex message-resend
261 The @code{message-resend} command will prompt the user for an address
262 and resend the message in the current buffer to that address.
263
264 @vindex message-ignored-resent-headers
265 Headers the match the @code{message-ignored-resent-headers} regexp will
266 be removed before sending the message.  The default is
267 @samp{^Return-receipt}. 
268
269
270 @node Bouncing
271 @section Bouncing
272
273 @findex message-bounce
274 The @code{message-bounce} command will, if the current buffer contains a
275 bounced mail message, pop up a message buffer stripped of the bounce
276 information.
277
278 @vindex message-ignored-bounced-headers
279 Headers that match the @code{message-ignored-bounced-headers} regexp
280 will be removed before popping up the buffer.  The default is
281 @samp{^Received:}. 
282
283
284 @node Commands
285 @chapter Commands
286
287 @menu
288 * Header Commands::     Commands for moving to headers.
289 * Movement::            Moving around in message buffers.
290 * Insertion::           Inserting things into message buffers.
291 * Various Commands::    Various things.
292 * Sending::             Actually sending the message.
293 @end menu
294
295
296 @node Header Commands
297 @section Header Commands
298
299 All these commands move to the header in question.  If it doesn't exist,
300 it will be inserted.
301
302 @table @kbd
303
304 @item C-c ?
305 @kindex C-c ?
306 @findex message-goto-to
307 Describe the message mode.
308
309 @item C-c C-f C-t
310 @kindex C-c C-f C-t 
311 @findex message-goto-to
312 Go to the @code{To} header (@code{message-goto-to}).
313
314 @item C-c C-f C-b
315 @kindex C-c C-f C-b 
316 @findex message-goto-bcc
317 Go to the @code{Bcc} header (@code{message-goto-bcc}).
318
319 @item C-c C-f C-f
320 @kindex C-c C-f C-f 
321 @findex message-goto-fcc
322 Go to the @code{Fcc} header (@code{message-goto-fcc}).
323
324 @item C-c C-f C-c
325 @kindex C-c C-f C-c 
326 @findex message-goto-cc
327 Go to the @code{Cc} header (@code{message-goto-cc}).
328
329 @item C-c C-f C-s
330 @kindex C-c C-f C-s 
331 @findex message-goto-subject
332 Go to the @code{Subject} header (@code{message-goto-subject}).
333
334 @item C-c C-f C-r
335 @kindex C-c C-f C-r 
336 @findex message-goto-reply-to
337 Go to the @code{Reply-To} header (@code{message-goto-reply-to}).
338
339 @item C-c C-f C-n
340 @kindex C-c C-f C-n 
341 @findex message-goto-newsgroups
342 Go to the @code{Newsgroups} header (@code{message-goto-newsgroups}).
343
344 @item C-c C-f C-d
345 @kindex C-c C-f C-d 
346 @findex message-goto-distribution
347 Go to the @code{Distribution} header (@code{message-goto-distribution}).
348
349 @item C-c C-f C-o
350 @kindex C-c C-f C-o 
351 @findex message-goto-followup-to
352 Go to the @code{Followup-To} header (@code{message-goto-followup-to}).
353
354 @item C-c C-f C-k
355 @kindex C-c C-f C-k 
356 @findex message-goto-keywords
357 Go to the @code{Keywords} header (@code{message-goto-keywords}).
358
359 @item C-c C-f C-u
360 @kindex C-c C-f C-u 
361 @findex message-goto-summary
362 Go to the @code{Summary} header (@code{message-goto-summary}).
363
364 @end table
365
366
367 @node Movement
368 @section Movement
369
370 @table @kbd
371 @item C-c C-b
372 @kindex C-c C-b 
373 @findex message-goto-body
374 Move to the beginning of the body of the message
375 (@code{message-goto-body}). 
376
377 @item C-c C-i
378 @kindex C-c C-i 
379 @findex message-goto-signature
380 Move to the signature of the message (@code{message-goto-signature}).
381
382 @end table
383
384
385 @node Insertion
386 @section Insertion
387
388 @table @kbd
389
390 @item C-c C-y
391 @kindex C-c C-y 
392 @findex message-yank-original
393 Yank the message that's being replied to into the message buffer
394 (@code{message-yank-original}). 
395
396 @item C-c C-q
397 @kindex C-c C-q 
398 @findex message-fill-yanked-message
399 Fill the yanked message (@code{message-fill-yanked-message}). 
400
401 @item C-c C-w
402 @kindex C-c C-w 
403 @findex message-insert-signature
404 Insert a signature at the end of the buffer
405 (@code{message-insert-signature}).  
406
407 @end table
408
409 @table @code
410 @item message-ignored-cited-headers
411 @vindex message-ignored-cited-headers
412 All headers that match this regexp will be removed from yanked
413 messages.  The default is @samp{.}, which means that all headers will be
414 removed.
415
416 @item message-citation-line-function
417 @vindex message-citation-line-function
418 Function called to insert the citation line.  The default is
419 @code{message-insert-citation-line}. 
420
421 @item message-yank-prefix
422 @vindex message-yank-prefix
423 @cindex yanking
424 @cindex quoting
425 When you are replying to or following up an article, you normally want
426 to quote the person you are answering.  Inserting quoted text is done by
427 @dfn{yanking}, and each quoted line you yank will have
428 @code{message-yank-prefix} prepended to it.  The default is @samp{> }.
429 If it is @code{nil}, just indent the message.
430
431 @item message-indentation-spaces
432 @vindex message-indentation-spaces
433 Number of spaces to indent yanked messages.
434
435 @item message-cite-function
436 @vindex message-cite-function
437 @findex message-cite-original
438 @findex sc-cite-original
439 @cindex SuperCite
440 Function for citing an original message.  The default is
441 @code{message-cite-original}.  You can also set it to
442 @code{sc-cite-original} to use SuperCite.
443
444 @item message-indent-citation-function
445 @vindex message-indent-citation-function
446 Function for modifying a citation just inserted in the mail buffer.
447 This can also be a list of functions.  Each function can find the
448 citation between @code{(point)} and @code{(mark t)}.  And each function
449 should leave point and mark around the citation text as modified.
450
451 @item message-signature
452 @vindex message-signature
453 String to be inserted at the end of the message buffer.  If @code{t}
454 (which is the default), the @code{message-signature-file} file will be
455 inserted instead.  If a function, the result from the function will be
456 used instead.  If a form, the result from the form will be used instead.
457 If this variable is @code{nil}, no signature will be inserted at all.
458
459 @item message-signature-file
460 @vindex message-signature-file
461 File containing the signature to be inserted at the end of the buffer.
462 The default is @samp{~/.signature}.
463
464 @end table
465
466 Note that RFC1036 says that a signature should be preceded by the three
467 characters @samp{-- } on a line by themselves.  This is to make it
468 easier for the recipient to automatically recognize and process the
469 signature.  So don't remove those characters, even though you might feel
470 that they ruin you beautiful design, like, totally.
471
472 Also note that no signature should be more than four lines long.
473 Including ASCII graphics is an efficient way to get everybody to believe
474 that you are silly and have nothing important to say.
475
476
477
478 @node Various Commands
479 @section Various Commands
480
481 @table @kbd
482
483 @item C-c C-r
484 @kindex C-c C-r 
485 @findex message-caesar-buffer-body
486 Caesar rotate (aka. rot13) the current message
487 (@code{message-caesar-buffer-body}).  If narrowing is in effect, just
488 rotate the visible portion of the buffer.  A numerical prefix says how
489 many places to rotate the text.  The default is 13.
490
491 @item C-c C-t
492 @kindex C-c C-t 
493 @findex message-insert-to
494 Insert a @code{To} header that contains the @code{Reply-To} or
495 @code{From} header of the message you're following up
496 (@code{message-insert-to}). 
497
498 @item C-c C-n
499 @kindex C-c C-n 
500 @findex message-insert-newsgroups
501 Insert a @code{Newsgroups} header that reflects the @code{Followup-To}
502 or @code{Newsgroups} header of the article you're replying to
503 (@code{message-insert-newsgroups}).
504
505 @item C-c M-r
506 @kindex C-c M-r
507 @findex message-rename-buffer
508 Rename the buffer (@code{message-rename-buffer}).  If given a prefix,
509 prompt for a new buffer name.
510
511 @end table
512
513
514 @node Sending
515 @section Sending
516
517 @table @kbd
518 @item C-c C-c
519 @kindex C-c C-c 
520 @findex message-send-and-exit
521 Send the message and bury the current buffer
522 (@code{message-send-and-exit}). 
523
524 @item C-c C-s
525 @kindex C-c C-s 
526 @findex message-send
527 Send the message (@code{message-send}). 
528
529 @item C-c C-d
530 @kindex C-c C-d
531 @findex message-dont-send
532 Bury the message buffer and exit (@code{message-dont-send}).
533
534 @item C-c C-k
535 @kindex C-c C-k
536 @findex message-kill-buffer
537 Kill the message buffer and exit (@code{message-kill-buffer}).
538
539 @end table
540
541
542 @node Variables
543 @chapter Variables
544
545 @menu
546 * Message Headers::             General message header stuff.
547 * Mail Headers::                Customizing mail headers.
548 * Mail Variables::              Other mail variables.
549 * News Headers::                Customizing news headers.
550 * News Variables::              Other news variables.
551 * Various Message Variables::   Other message variables.
552 * Sending Variables::           Variables for sending.
553 * Message Actions::             Actions to be performed when exiting.
554 @end menu
555
556
557 @node Message Headers
558 @section Message Headers
559
560 Message is a quite aggressive on the message generation front.  It has
561 to be -- it's a combined news and mail agent.  To be able to send
562 combined messages, it has to generate all headers itself to ensure that
563 mail and news copies of messages look sufficiently similar.
564
565 @table @code
566
567 @item message-generate-headers-first
568 @vindex message-generate-headers-first
569 If non-@code{nil}, generate all headers before starting to compose the
570 message.  
571
572 @item message-from-style
573 @vindex message-from-style
574 Specifies how @code{From} headers should look.  There are four legal
575 values:
576
577 @table @code
578 @item nil
579 Just the address -- @samp{king@@grassland.com}.
580
581 @item parens
582 @samp{king@@grassland.com (Elvis Parsley)}.
583
584 @item angles
585 @samp{Elvis Parsley <king@@grassland.com>}.
586
587 @item default
588 Look like @code{angles} if that doesn't require quoting, and
589 @code{parens} if it does.  If even @code{parens} requires quoting, use
590 @code{angles} anyway.
591
592 @end table
593
594 @item message-deletable-headers
595 @vindex message-deletable-headers
596 Headers in this list that were previously generated by Message will be
597 deleted before posting.  Let's say you post an article.  Then you decide
598 to post it again to some other group, you naughty boy, so you jump back
599 to the @code{*post-buf*} buffer, edit the @code{Newsgroups} line, and
600 ship it off again.  By default, this variable makes sure that the old
601 generated @code{Message-ID} is deleted, and a new one generated.  If
602 this isn't done, the entire empire would probably crumble, anarchy would
603 prevail, and cats would start walking on two legs and rule the world.
604 Allegedly.  
605
606 @item message-default-headers
607 @vindex message-default-headers
608 This string is inserted at the end of the headers in all message
609 buffers.
610
611 @end table
612
613
614 @node Mail Headers
615 @section Mail Headers
616
617 @table @code
618 @item message-required-mail-headers
619 @vindex message-required-mail-headers
620 See @pxref{News Headers} for the syntax of this variable.  It is
621 @code{(From Date Subject (optional . In-Reply-To) Message-ID Lines
622 (optional . X-Mailer))} by default.
623
624 @item message-ignored-mail-headers
625 @vindex message-ignored-mail-headers
626 Regexp of headers to be removed before mailing.  The default is
627 @samp{^Gcc:\\|^Fcc:}. 
628
629 @item message-default-mail-headers
630 @vindex message-default-mail-headers
631 This string is inserted at the end of the headers in all message
632 buffers that are initialized as mail.
633
634 @end table
635
636
637 @node Mail Variables
638 @section Mail Variables 
639
640 @table @code
641 @item message-send-mail-function
642 @vindex message-send-mail-function
643 Function used to send the current buffer as mail.  The default is
644 @code{message-send-mail-with-sendmail}.   If you prefer using MH
645 instead, set this variable to @code{message-send-mail-with-mh}.
646
647 @end table
648
649
650 @node News Headers
651 @section News Headers
652
653 @vindex message-required-news-headers
654 @code{message-required-news-headers} a list of header symbols.  These
655 headers will either be automatically generated, or, if that's
656 impossible, they will be prompted for.  The following symbols are legal:
657
658 @table @code
659
660 @item From
661 @cindex From
662 This required header will be filled out with the result of the
663 @code{message-make-from} function, which depends on the
664 @code{message-from-style}, @code{user-full-name},
665 @code{user-mail-address} variables.
666
667 @item Subject
668 @cindex Subject
669 This required header will be prompted for if not present already. 
670
671 @item Newsgroups
672 @cindex Newsgroups
673 This required header says which newsgroups the article is to be posted
674 to.  If it isn't present already, it will be prompted for.
675
676 @item Organization
677 @cindex organization
678 This optional header will be filled out depending on the
679 @code{message-user-organization} variable.
680 @code{message-user-organization-file} will be used if that variable is
681 @code{t}.
682
683 @item Lines
684 @cindex Lines
685 This optional header will be computed by Message.
686
687 @item Message-ID
688 @cindex Message-ID
689 This required header will be generated by Message.  A unique ID will be
690 created based on date, time, user name and system name.
691
692 @item X-Newsreader
693 @cindex X-Newsreader
694 This optional header will be filled out according to the
695 @code{message-newsreader} local variable.
696
697 @item X-Mailer
698 This optional header will be filled out according to the
699 @code{message-mailer} local variable, unless there already is an
700 @code{X-Newsreader} header present.
701
702 @item In-Reply-To
703 This optional header is filled out using the @code{Date} and @code{From}
704 header of the article being replied.
705
706 @item Expires
707 @cindex Expires
708 This extremely optional header will be inserted according to the
709 @code{message-expires} variable.  It is highly deprecated and shouldn't
710 be used unless you know what you're doing.
711
712 @item Distribution
713 @cindex Distribution
714 This optional header is filled out according to the
715 @code{message-distribution-function} variable.  It is a deprecated and
716 much misunderstood header.
717
718 @item Path
719 @cindex path
720 This extremely optional header should probably not ever be used.
721 However, some @emph{very} old servers require that this header is
722 present.  @code{message-user-path} further controls how this
723 @code{Path} header is to look.  If is is @code{nil}, the the server name
724 as the leaf node.  If is is a string, use the string.  If it is neither
725 a string nor @code{nil}, use the user name only.  However, it is highly
726 unlikely that you should need to fiddle with this variable at all.
727 @end table
728
729 @findex yow
730 @cindex Mime-Version
731 In addition, you can enter conses into this list.  The car of this cons
732 should be a symbol.  This symbol's name is the name of the header, and
733 the cdr can either be a string to be entered verbatim as the value of
734 this header, or it can be a function to be called.  This function should
735 return a string to be inserted.  For instance, if you want to insert
736 @code{Mime-Version: 1.0}, you should enter @code{(Mime-Version . "1.0")}
737 into the list.  If you want to insert a funny quote, you could enter
738 something like @code{(X-Yow . yow)} into the list.  The function
739 @code{yow} will then be called without any arguments.
740
741 If the list contains a cons where the car of the cons is
742 @code{optional}, the cdr of this cons will only be inserted if it is
743 non-@code{nil}.
744
745 Other variables for customizing outgoing news articles:
746
747 @table @code
748
749 @item message-syntax-checks
750 @vindex message-syntax-checks
751 If non-@code{nil}, message will attempt to check the legality of the
752 headers, as well as some other stuff, before posting.  You can control
753 the granularity of the check by adding or removing elements from this
754 list.  Legal elements are:
755
756 @table @code
757 @item subject-cmsg 
758 Check the subject for commands.
759 @item sender
760 @cindex Sender
761 Insert a new @code{Sender} header if the @code{From} header looks odd. 
762 @item multiple-headers 
763 Check for the existence of multiple equal headers.
764 @item sendsys 
765 @cindex sendsys
766 Check for the existence of version and sendsys commands.
767 @item message-id
768 Check whether the @code{Message-ID} looks ok.
769 @item from
770 Check whether the @code{From} header seems nice.
771 @item long-lines 
772 @cindex long lines
773 Check for too long lines.
774 @item control-chars
775 Check for illegal characters.
776 @item size
777 Check for excessive size.
778 @item new-text
779 Check whether there is any new text in the messages.
780 @item signature
781 Check the length of the signature.
782 @item approved
783 @cindex approved
784 Check whether the article has an @code{Approved} header, which is
785 something only moderators should include.
786 @item empty
787 Check whether the article is empty.
788 @item empty-headers
789 Check whether any of the headers are empty.
790 @item existing-newsgroups
791 Check whether the newsgroups mentioned in the Newsgroups and 
792 Followup-To headers exist.
793 @item valid-newsgroups
794 Check whether the @code{Newsgroups} and @code{Followup-To} headers
795 are valid syntactially.
796 @end table
797
798 All these conditions are checked by default.
799
800 @item message-ignored-news-headers
801 @vindex message-ignored-news-headers
802 Regexp of headers to be removed before posting.  The default is
803 @samp{^NNTP-Posting-Host:\\|^Xref:\\|^Bcc:\\|^Gcc:\\|^Fcc:}. 
804
805 @item message-default-news-headers
806 @vindex message-default-news-headers
807 This string is inserted at the end of the headers in all message
808 buffers that are initialized as news.
809
810 @end table
811
812
813 @node News Variables
814 @section News Variables
815
816 @table @code
817 @item message-send-news-function
818 @vindex message-send-news-function
819 Function used to send the current buffer as news.  The default is
820 @code{message-send-news}. 
821
822 @item message-post-method
823 @vindex message-post-method
824 Method used for posting a prepared news message.
825
826 @end table
827
828
829 @node Various Message Variables
830 @section Various Message Variables
831
832 @table @code
833 @item message-signature-separator
834 @vindex message-signature-separator
835 Regexp matching the signature separator.  It is @samp{^-- *$} by
836 default. 
837
838 @item mail-header-separator
839 @vindex mail-header-separator
840 String used to separate the headers from the body.  It is @samp{--text
841 follows this line--} by default.
842
843 @item message-directory
844 @vindex message-directory
845 Directory used by many mailey things.  The default is @file{~/Mail/}. 
846
847 @item message-autosave-directory
848 @vindex message-autosave-directory
849 Directory where message buffers will be autosaved to.
850
851 @item message-setup-hook
852 @vindex message-setup-hook
853 Hook run when the message buffer has been initialized.
854
855 @item message-header-setup-hook
856 @vindex message-header-setup-hook
857 Hook called narrowed to the headers after initializing the headers. 
858
859 @item message-send-hook
860 @vindex message-send-hook
861 Hook run before sending messages.
862
863 @item message-sent-hook
864 @vindex message-sent-hook
865 Hook run after sending messages.
866
867 @item message-mode-syntax-table
868 @vindex message-mode-syntax-table
869 Syntax table used in message mode buffers.
870
871 @end table
872
873
874
875 @node Sending Variables
876 @section Sending Variables
877
878 @table @code
879
880 @item message-fcc-handler-function 
881 @vindex message-fcc-handler-function 
882 A function called to save outgoing articles.  This function will be
883 called with the name of the file to store the article in. The default
884 function is @code{rmail-output} which saves in Unix mailbox format.
885
886 @item message-courtesy-message
887 @vindex message-courtesy-message
888 When sending combined messages, this string is inserted at the start of
889 the mailed copy.  If this variable is @code{nil}, no such courtesy
890 message will be added.
891
892 @end table
893
894
895 @node Message Actions
896 @section Message Actions
897
898 When Message is being used from a news/mail reader, the reader is likely
899 to want to perform some task after the message has been sent.  Perhaps
900 return to the previous window configuration or mark an article as
901 replied.  
902
903 @vindex message-kill-actions
904 @vindex message-postpone-actions
905 @vindex message-exit-actions
906 @vindex message-send-actions
907 The user may exit from the message buffer in various ways.  The most
908 common is @kbd{C-c C-c}, which sends the message and exits.  Other
909 possibilities are @kbd{C-c C-s} which just sends the message, @kbd{C-c
910 C-d} which postpones the message editing and buries the message buffer,
911 and @kbd{C-c C-k} which kills the message buffer.  Each of these actions
912 have lists associated with them that contains actions to be executed:
913 @code{message-send-actions}, @code{message-exit-actions},
914 @code{message-postpone-actions}, and @code{message-kill-actions}.  
915
916 Message provides a function to interface with these lists:
917 @code{message-add-action}.  The first parameter is the action to be
918 added, and the rest of the arguments are which lists to add this action
919 to.  Here's an example from Gnus:
920
921 @lisp
922   (message-add-action
923    `(set-window-configuration ,(current-window-configuration))
924    'exit 'postpone 'kill)
925 @end lisp
926
927 This restores the Gnus window configuration when the message buffer is
928 killed, postponed or exited.
929
930 An @dfn{action} can be either a normal function; or a list where the
931 @code{car} is a function and the @code{cdr} is the list of arguments; or
932 a form to be @code{eval}ed.
933
934 @node Index
935 @chapter Index
936 @printindex cp
937
938 @node Key Index
939 @chapter Key Index
940 @printindex ky
941
942 @summarycontents
943 @contents
944 @bye
945
946 @c End: