diff options
author | Philip Kaludercic <philipk@posteo.net> | 2021-12-19 22:53:59 +0100 |
---|---|---|
committer | Philip Kaludercic <philipk@posteo.net> | 2021-12-23 00:18:36 +0100 |
commit | 28fff38eeb9e7641937bc3448d43c0a7d0eb6bbc (patch) | |
tree | f381a121432ede590d4ad8cd3f6085c080486f92 /doc/misc/message.texi | |
parent | 8cc7326d953db2006c41a8eb99ca2530a63cabda (diff) | |
download | emacs-28fff38eeb9e7641937bc3448d43c0a7d0eb6bbc.tar.gz |
Allow automatic X-Message-SMTP-Method header insertion
* message.el (message-server-alist): Add user option
(message-update-smtp-method-header): Add function
(message-send): Call message-update-smtp-method-header
* doc/misc/message.texi (Sending Variables): Document
message-server-alist
* etc/NEWS: Add news entry
Diffstat (limited to 'doc/misc/message.texi')
-rw-r--r-- | doc/misc/message.texi | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/misc/message.texi b/doc/misc/message.texi index 4136ad859f7..dac5e757faa 100644 --- a/doc/misc/message.texi +++ b/doc/misc/message.texi @@ -2553,6 +2553,15 @@ if @code{nil} let the mailer mail back a message to report errors. When non-@code{nil}, Gnus will ask for confirmation when sending a message. +@item message-server-alist +@vindex message-server-alist +An alist describing how to insert a @code{X-Message-SMTP-Method} +header before sending out a new message. The key has to be a string, +that will be matched with the @code{From} header, and will insert the +value as the SMTP Method if these are equal. Alternatively, the key +may be a function that will be called in the message buffer without +any arguments, and matches if a non-nil value is returned. + @end table |