aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1998-05-28 03:49:04 +0000
committerRichard M. Stallman1998-05-28 03:49:04 +0000
commit13da0554f62a88f309b1b79f688b1468420487a4 (patch)
tree36475c0af13f0a50dbd520d8f60180a7a646c02b
parentfb597fe85a4c5212f54f97124c83b6af30d5d722 (diff)
downloademacs-13da0554f62a88f309b1b79f688b1468420487a4.tar.gz
emacs-13da0554f62a88f309b1b79f688b1468420487a4.zip
(sendmail-send-it):
If mail-from-style isn't angles, parens or nil, don't use -f option.
-rw-r--r--lisp/mail/sendmail.el10
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index 967655e7a2d..b9e8853d00f 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -846,10 +846,12 @@ the user from the mailer."
846 nil errbuf nil "-oi") 846 nil errbuf nil "-oi")
847 ;; Always specify who from, 847 ;; Always specify who from,
848 ;; since some systems have broken sendmails. 848 ;; since some systems have broken sendmails.
849 (list "-f" (user-login-name)) 849 ;; unless user has said no.
850 ;;; ;; Don't say "from root" if running under su. 850 (if (memq mail-from-style '(angles parens nil))
851 ;;; (and (equal (user-real-login-name) "root") 851 (list "-f" (user-login-name)))
852 ;;; (list "-f" (user-login-name))) 852;;; ;; Don't say "from root" if running under su.
853;;; (and (equal (user-real-login-name) "root")
854;;; (list "-f" (user-login-name)))
853 (and mail-alias-file 855 (and mail-alias-file
854 (list (concat "-oA" mail-alias-file))) 856 (list (concat "-oA" mail-alias-file)))
855 (if mail-interactive 857 (if mail-interactive