[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 3ad239e: `mail-envelope-from' doc clarification
From: |
Lars Ingebrigtsen |
Subject: |
master 3ad239e: `mail-envelope-from' doc clarification |
Date: |
Fri, 7 May 2021 08:09:24 -0400 (EDT) |
branch: master
commit 3ad239e1bc1228407ae656440327a29e7373f977
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
`mail-envelope-from' doc clarification
* lisp/mail/sendmail.el (mail-envelope-from): Note that the buffer
should be narrowed before calling (bug#47616).
---
lisp/mail/sendmail.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index 9a4c8f3..a64f086 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")))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 3ad239e: `mail-envelope-from' doc clarification,
Lars Ingebrigtsen <=