summaryrefslogtreecommitdiff
path: root/lisp/mail/sendmail.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2021-05-07 13:17:12 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2021-05-07 14:09:18 +0200
commit3ad239e1bc1228407ae656440327a29e7373f977 (patch)
treec333bdff29bfe033670231dcfd24d7f7dae2da3e /lisp/mail/sendmail.el
parent70bfcbcdd328775d0fcac5ec06b797e227fc032a (diff)
downloademacs-3ad239e1bc1228407ae656440327a29e7373f977.tar.gz
`mail-envelope-from' doc clarification
* lisp/mail/sendmail.el (mail-envelope-from): Note that the buffer should be narrowed before calling (bug#47616).
Diffstat (limited to 'lisp/mail/sendmail.el')
-rw-r--r--lisp/mail/sendmail.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index 9a4c8f3c665..a64f0869981 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -962,7 +962,10 @@ the user from the mailer."
(defun mail-envelope-from ()
"Return the envelope mail address to use when sending mail.
-This function uses `mail-envelope-from'."
+This function uses the `mail-envelope-from' variable.
+
+The buffer should be narrowed to the headers of the mail message
+before this function is called."
(if (eq mail-envelope-from 'header)
(nth 1 (mail-extract-address-components
(mail-fetch-field "From")))