aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1999-08-10 17:46:24 +0000
committerKarl Heuer1999-08-10 17:46:24 +0000
commit32afb7445f7b307a82ba3f5bf991caef62474f6f (patch)
treefc35a957a763b9f58a70d959d2af814c9706065d
parent86a4c778b507e9ae178d8fbbf56b664e8149dddc (diff)
downloademacs-32afb7445f7b307a82ba3f5bf991caef62474f6f.tar.gz
emacs-32afb7445f7b307a82ba3f5bf991caef62474f6f.zip
(sendmail-send-it): Let mail-specify-envelope-from
control use of -f option. (mail-specify-envelope-from): New variable. (mail-from-style): Doc fix.
-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)))