Variable: message-server-alist

message-server-alist is a customizable variable defined in message.el.gz.

Value

nil

Documentation

Alist of rules to generate "X-Message-SMTP-Method" header.

The header will be inserted just before the message is sent. Elements should be of the form (COND . METHOD). If COND is a string, METHOD will be inserted if the "From" address compares equal with COND. If COND is a function, METHOD will be inserted if COND returns a non-nil value when called in the message buffer without any arguments. If METHOD is nil in this case, the return value of the function will be inserted instead.

Note: if the buffer already has a "X-Message-SMTP-Method" header, these rules are ignored, and the header is left unchanged.

This variable was added, or its default value changed, in Emacs 29.1.

Probably introduced at or before Emacs version 29.1.

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/message.el.gz
(defcustom message-server-alist nil
  "Alist of rules to generate \"X-Message-SMTP-Method\" header.
The header will be inserted just before the message is sent.
Elements should be of the form (COND . METHOD).
If COND is a string, METHOD will be inserted if the \"From\"
address compares equal with COND.
If COND is a function, METHOD will be inserted if COND returns
a non-nil value when called in the message buffer without any
arguments.  If METHOD is nil in this case, the return value of
the function will be inserted instead.

Note: if the buffer already has a \"X-Message-SMTP-Method\"
header, these rules are ignored, and the header is left
unchanged."
  :type '(alist :key-type (choice
                           (string :tag "From Address")
                           (function :tag "Predicate"))
                :value-type string)
  :version "29.1"
  :group 'message-sending)