aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/mail/sendmail.el26
1 files changed, 20 insertions, 6 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index ac5d946d305..3d080047885 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -43,13 +43,30 @@ If `parens', they look like:
43 king@grassland.com (Elvis Parsley) 43 king@grassland.com (Elvis Parsley)
44If `angles', they look like: 44If `angles', they look like:
45 Elvis Parsley <king@grassland.com> 45 Elvis Parsley <king@grassland.com>
46If `system-default', Rmail allows the system to insert its default From field." 46If `system-default', allows the mailer to insert its default From field
47derived from the envelope-from address.
48
49In old versions of Emacs, the `system-default' setting also caused
50Emacs to pass the proper email address from `user-mail-address'
51to the mailer to specify the envelope-from address. But that is now
52controlled by a separate variable, `mail-specify-envelope-from'."
47 :type '(choice (const nil) (const parens) (const angles) 53 :type '(choice (const nil) (const parens) (const angles)
48 (const system-default)) 54 (const system-default))
49 :version "20.3" 55 :version "20.3"
50 :group 'sendmail) 56 :group 'sendmail)
51 57
52;;;###autoload 58;;;###autoload
59(defcustom mail-specify-envelope-from t "\
60 "*If non-nil, specify the envelope-from address when sending mail.
61The value used to specify it is whatever is found in `user-mail-address'.
62
63On most systems, specifying the envelope-from address
64is a privileged operation."
65 :version "21.1"
66 :type 'boolean
67 :group 'sendmail)
68
69;;;###autoload
53(defcustom mail-self-blind nil "\ 70(defcustom mail-self-blind nil "\
54*Non-nil means insert BCC to self in messages to be sent. 71*Non-nil means insert BCC to self in messages to be sent.
55This is done when the message is initialized, 72This is done when the message is initialized,
@@ -889,11 +906,8 @@ See also the function `select-message-coding-system'.")
889 sendmail-program 906 sendmail-program
890 "/usr/lib/sendmail") 907 "/usr/lib/sendmail")
891 nil errbuf nil "-oi") 908 nil errbuf nil "-oi")
892 ;; Always specify who from, 909 (and mail-specify-envelope-from
893 ;; since some systems have broken sendmails. 910 (list "-f" user-mail-address))
894 ;; unless user has said no.
895 (if (memq mail-from-style '(angles parens nil))
896 (list "-f" user-mail-address))
897;;; ;; Don't say "from root" if running under su. 911;;; ;; Don't say "from root" if running under su.
898;;; (and (equal (user-real-login-name) "root") 912;;; (and (equal (user-real-login-name) "root")
899;;; (list "-f" (user-login-name))) 913;;; (list "-f" (user-login-name)))