aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2001-07-06 10:31:11 +0000
committerGerd Moellmann2001-07-06 10:31:11 +0000
commitc1a1fd607093655de832d1bc3f2cd021792d3e75 (patch)
tree56c0153d1fed3c8a1aa6cfaf3ff7784169886402
parent68372be176a3799b0c7a9c9c242765c87ccefea0 (diff)
downloademacs-c1a1fd607093655de832d1bc3f2cd021792d3e75.tar.gz
emacs-c1a1fd607093655de832d1bc3f2cd021792d3e75.zip
(mail-specify-envelope-from): Doc fix.
(mail-envelope-from): New user option. (sendmail-send-it): Use it.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/mail/sendmail.el19
2 files changed, 20 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b3b86864de3..4b0ecfe26be 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12001-07-06 Simon Josefsson <jas@extundo.com>
2
3 * mail/sendmail.el (mail-specify-envelope-from): Doc fix.
4 (mail-envelope-from): New user option.
5 (sendmail-send-it): Use it.
6
12001-07-06 Vinicius Jose Latorre <vinicius@cpqd.com.br> 72001-07-06 Vinicius Jose Latorre <vinicius@cpqd.com.br>
2 8
3 * ps-print.el: Use locale dependant date to print date in header. Doc 9 * ps-print.el: Use locale dependant date to print date in header. Doc
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index f354ddb59c5..1ff0453e62e 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -67,7 +67,8 @@ controlled by a separate variable, `mail-specify-envelope-from'."
67;;;###autoload 67;;;###autoload
68(defcustom mail-specify-envelope-from nil 68(defcustom mail-specify-envelope-from nil
69 "*If non-nil, specify the envelope-from address when sending mail. 69 "*If non-nil, specify the envelope-from address when sending mail.
70The value used to specify it is whatever is found in `user-mail-address'. 70The value used to specify it is whatever is found in
71`mail-envelope-from', with `user-mail-address' as fallback.
71 72
72On most systems, specifying the envelope-from address 73On most systems, specifying the envelope-from address
73is a privileged operation." 74is a privileged operation."
@@ -75,6 +76,14 @@ is a privileged operation."
75 :type 'boolean 76 :type 'boolean
76 :group 'sendmail) 77 :group 'sendmail)
77 78
79(defcustom mail-envelope-from nil
80 "*If non-nil, designate the envelope-from address when sending mail.
81If this is nil while `mail-specify-envelope-from' is non-nil, the
82content of `user-mail-address' is used."
83 :version "21.1"
84 :type 'boolean
85 :group 'sendmail)
86
78;;;###autoload 87;;;###autoload
79(defcustom mail-self-blind nil "\ 88(defcustom mail-self-blind nil "\
80*Non-nil means insert BCC to self in messages to be sent. 89*Non-nil means insert BCC to self in messages to be sent.
@@ -801,8 +810,7 @@ external program defined by `sendmail-program'."
801 (mailbuf (current-buffer)) 810 (mailbuf (current-buffer))
802 (program (if (boundp 'sendmail-program) 811 (program (if (boundp 'sendmail-program)
803 sendmail-program 812 sendmail-program
804 "/usr/lib/sendmail")) 813 "/usr/lib/sendmail")))
805 (originator user-mail-address))
806 (unwind-protect 814 (unwind-protect
807 (save-excursion 815 (save-excursion
808 (set-buffer tembuf) 816 (set-buffer tembuf)
@@ -968,8 +976,9 @@ external program defined by `sendmail-program'."
968 (append (list (point-min) (point-max) 976 (append (list (point-min) (point-max)
969 program 977 program
970 nil errbuf nil "-oi") 978 nil errbuf nil "-oi")
971 (and mail-specify-envelope-from 979 (and mail-specify-envelope-from
972 (list "-f" originator)) 980 (list "-f" (or mail-envelope-from
981 user-mail-address)))
973;;; ;; Don't say "from root" if running under su. 982;;; ;; Don't say "from root" if running under su.
974;;; (and (equal (user-real-login-name) "root") 983;;; (and (equal (user-real-login-name) "root")
975;;; (list "-f" (user-login-name))) 984;;; (list "-f" (user-login-name)))