From ca509785317be9585ca72fb72374edc42f6b65a2 Mon Sep 17 00:00:00 2001 From: yamaoka Date: Wed, 30 Nov 2005 07:00:13 +0000 Subject: [PATCH] Synch to No Gnus 200511300700. --- texi/ChangeLog | 4 ++++ texi/message.texi | 24 ++++++++++++++++++++---- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/texi/ChangeLog b/texi/ChangeLog index a467e89..5ff31e9 100644 --- a/texi/ChangeLog +++ b/texi/ChangeLog @@ -1,3 +1,7 @@ +2005-11-30 Katsumi Yamaoka + + * message.texi (Various Message Variables): Addition. + 2005-11-29 Katsumi Yamaoka * message.texi: Fix default values. diff --git a/texi/message.texi b/texi/message.texi index 438b681..ec8d1f3 100644 --- a/texi/message.texi +++ b/texi/message.texi @@ -2063,8 +2063,11 @@ message composition doesn't break too bad. @item message-send-method-alist @vindex message-send-method-alist - -Alist of ways to send outgoing messages. Each element has the form +@findex message-mail-p +@findex message-news-p +@findex message-send-via-mail +@findex message-send-via-news +Alist of ways to send outgoing messages. Each element has the form: @lisp (@var{type} @var{predicate} @var{function}) @@ -2076,19 +2079,32 @@ A symbol that names the method. @item predicate A function called without any parameters to determine whether the -message is a message of type @var{type}. +message is a message of type @var{type}. The function will be called in +the buffer where the message is. @item function A function to be called if @var{predicate} returns non-@code{nil}. @var{function} is called with one parameter---the prefix. @end table +The default is: + @lisp ((news message-news-p message-send-via-news) (mail message-mail-p message-send-via-mail)) @end lisp - +The @code{message-news-p} function returns non-@code{nil} if the message +looks like news, and the @code{message-send-via-news} function sends the +message according to the @code{message-send-news-function} variable +(@pxref{News Variables}). The @code{message-mail-p} function returns +non-@code{nil} if the message looks like mail, and the +@code{message-send-via-mail} function sends the message according to the +@code{message-send-mail-function} variable (@pxref{Mail Variables}). + +All the elements in this alist will be tried in order, so a message +containing both a valid @samp{Newsgroups} header and a valid @samp{To} +header, for example, will be sent as news, and then as mail. @end table -- 1.7.10.4