Mercurial > hg > xemacs-beta
comparison man/message.texi @ 24:4103f0995bd7 r19-15b95
Import from CVS: tag r19-15b95
author | cvs |
---|---|
date | Mon, 13 Aug 2007 08:51:03 +0200 |
parents | 0293115a14e9 |
children | 441bb1e64a06 |
comparison
equal
deleted
inserted
replaced
23:0edd3412f124 | 24:4103f0995bd7 |
---|---|
297 * Header Commands:: Commands for moving to headers. | 297 * Header Commands:: Commands for moving to headers. |
298 * Movement:: Moving around in message buffers. | 298 * Movement:: Moving around in message buffers. |
299 * Insertion:: Inserting things into message buffers. | 299 * Insertion:: Inserting things into message buffers. |
300 * Various Commands:: Various things. | 300 * Various Commands:: Various things. |
301 * Sending:: Actually sending the message. | 301 * Sending:: Actually sending the message. |
302 * Mail Aliases:: How to use mail aliases. | |
302 @end menu | 303 @end menu |
303 | 304 |
304 | 305 |
305 @node Header Commands | 306 @node Header Commands |
306 @section Header Commands | 307 @section Header Commands |
551 @kindex C-c C-k | 552 @kindex C-c C-k |
552 @findex message-kill-buffer | 553 @findex message-kill-buffer |
553 Kill the message buffer and exit (@code{message-kill-buffer}). | 554 Kill the message buffer and exit (@code{message-kill-buffer}). |
554 | 555 |
555 @end table | 556 @end table |
557 | |
558 | |
559 | |
560 @node Mail Aliases | |
561 @section Mail Aliases | |
562 @cindex mail aliases | |
563 @cindex aliases | |
564 | |
565 Message uses @code{mailabbrev} to handle mail aliases. | |
566 @code{mailabbrev} works by parsing the @file{/etc/mailrc} and | |
567 @file{~/.mailrc} files. These files look like: | |
568 | |
569 @example | |
570 alias lmi "Lars Magne Ingebrigtsen <larsi@@ifi.uio.no>" | |
571 alias ding "ding@@ifi.uio.no (ding mailing list)" | |
572 @end example | |
573 | |
574 After adding lines like this to your @file{~/.mailrc} file, you should | |
575 be able to just write @samp{lmi} in the @code{To} or @code{Cc} (and so | |
576 on) headers and press @kbd{SPC} to expand the alias. | |
577 | |
578 No expansion will be performed upon sending of the message---all | |
579 expansions have to be done explicitly. | |
580 | |
556 | 581 |
557 | 582 |
558 @node Variables | 583 @node Variables |
559 @chapter Variables | 584 @chapter Variables |
560 | 585 |
659 @vindex message-send-mail-function | 684 @vindex message-send-mail-function |
660 Function used to send the current buffer as mail. The default is | 685 Function used to send the current buffer as mail. The default is |
661 @code{message-send-mail-with-sendmail}. If you prefer using MH | 686 @code{message-send-mail-with-sendmail}. If you prefer using MH |
662 instead, set this variable to @code{message-send-mail-with-mh}. | 687 instead, set this variable to @code{message-send-mail-with-mh}. |
663 | 688 |
689 @item message-mh-deletable-headers | |
690 @vindex message-mh-deletable-headers | |
691 Most versions of MH doesn't like being fed messages that contain the | |
692 headers in this variable. If this variable is non-@code{nil} (which is | |
693 the default), these headers will be removed before mailing. Set it to | |
694 @code{nil} if your MH can handle these headers. | |
695 | |
664 @end table | 696 @end table |
665 | 697 |
666 | 698 |
667 @node News Headers | 699 @node News Headers |
668 @section News Headers | 700 @section News Headers |
694 | 726 |
695 @item Organization | 727 @item Organization |
696 @cindex organization | 728 @cindex organization |
697 This optional header will be filled out depending on the | 729 This optional header will be filled out depending on the |
698 @code{message-user-organization} variable. | 730 @code{message-user-organization} variable. |
699 @code{message-user-organization-file} will be used if that variable is | 731 @code{message-user-organization-file} will be used if this variable is |
700 @code{t}. | 732 @code{t}. This variable can also be a string (in which case this string |
733 will be used), or it can be a function (which will be called with no | |
734 parameters and should return a string to be used). | |
701 | 735 |
702 @item Lines | 736 @item Lines |
703 @cindex Lines | 737 @cindex Lines |
704 This optional header will be computed by Message. | 738 This optional header will be computed by Message. |
705 | 739 |
888 | 922 |
889 @item message-header-setup-hook | 923 @item message-header-setup-hook |
890 @vindex message-header-setup-hook | 924 @vindex message-header-setup-hook |
891 Hook called narrowed to the headers after initializing the headers. | 925 Hook called narrowed to the headers after initializing the headers. |
892 | 926 |
927 For instance, if you're running Gnus and wish to insert a | |
928 @samp{Mail-Copies-To} header in all your news articles and all messages | |
929 you send to mailing lists, you could do something like the following: | |
930 | |
931 @lisp | |
932 (defun my-message-header-setup-hook () | |
933 (when (or (message-fetch-field "newsgroups") | |
934 (gnus-group-find-parameter | |
935 gnus-newsgroup-name 'to-address) | |
936 (gnus-group-find-parameter | |
937 gnus-newsgroup-name 'to-list)) | |
938 (insert "Mail-Copies-To: never\n"))) | |
939 | |
940 (add-hook 'message-header-setup-hook 'my-message-header-setup-hook) | |
941 @end lisp | |
942 | |
893 @item message-send-hook | 943 @item message-send-hook |
894 @vindex message-send-hook | 944 @vindex message-send-hook |
895 Hook run before sending messages. | 945 Hook run before sending messages. |
896 | 946 |
897 @item message-send-mail-hook | 947 @item message-send-mail-hook |