Next: News Variables, Previous: Mail Variables, Up: Variables
message-required-news-headers a list of header symbols. These
headers will either be automatically generated, or, if that's
impossible, they will be prompted for. The following symbols are valid:
Frommessage-make-from function, which depends on the
message-from-style, user-full-name,
user-mail-address variables.
SubjectNewsgroupsOrganizationmessage-user-organization variable.
message-user-organization-file will be used if this variable is
t. This variable can also be a string (in which case this string
will be used), or it can be a function (which will be called with no
parameters and should return a string to be used).
LinesMessage-IDmessage-user-fqdn, system-name, mail-host-address
and message-user-mail-address (i.e., user-mail-address)
until a probably valid fully qualified domain name (FQDN) was found.
User-Agentmessage-newsreader local variable.
In-Reply-ToDate and From
header of the article being replied to.
Expiresmessage-expires variable. It is highly deprecated and shouldn't
be used unless you know what you're doing.
Distributionmessage-distribution-function variable. It is a deprecated and
much misunderstood header.
Pathmessage-user-path further controls how this
Path header is to look. If it is nil, use the server name
as the leaf node. If it is a string, use the string. If it is neither
a string nor nil, use the user name only. However, it is highly
unlikely that you should need to fiddle with this variable at all.
In addition, you can enter conses into this list. The car of this cons
should be a symbol. This symbol's name is the name of the header, and
the cdr can either be a string to be entered verbatim as the value of
this header, or it can be a function to be called. This function should
return a string to be inserted. For instance, if you want to insert
Mime-Version: 1.0, you should enter (Mime-Version . "1.0")
into the list. If you want to insert a funny quote, you could enter
something like (X-Yow . yow) into the list. The function
yow will then be called without any arguments.
If the list contains a cons where the car of the cons is
optional, the cdr of this cons will only be inserted if it is
non-nil.
If you want to delete an entry from this list, the following Lisp snippet might be useful. Adjust accordingly if you want to remove another element.
(setq message-required-news-headers
(delq 'Message-ID message-required-news-headers))
Other variables for customizing outgoing news articles:
message-syntax-checks(signature . disabled)
to this list.
Valid checks are:
approvedApproved header, which is
something only moderators should include.
continuation-headerscontrol-charsemptyexisting-newsgroupsNewsgroups and
Followup-To headers exist.
fromFrom header seems nice.
illegible-textinvisible-textlong-header-lineslong-linesmessage-idMessage-ID looks syntactically ok.
multiple-headersnew-textnewsgroupsNewsgroups header exists and is not empty.
quoting-stylerepeated-newsgroupsNewsgroups and Followup-to headers
contains repeated group names.
reply-toReply-To header looks ok.
senderSender header if the From header looks odd.
sendsysshootMessage-ID header looks ok.
shorten-followup-toFollowup-to header to shorten the number
of groups to post to.
signaturesizesubjectSubject header exists and is not empty.
subject-cmsgvalid-newsgroupsNewsgroups and Followup-to headers
are valid syntactically.
All these conditions are checked by default, except for sender
for which the check is disabled by default if
message-insert-canlock is non-nil (see Canceling News).
message-ignored-news-headersmessage-default-news-headers