]> git.eshelyaron.com Git - emacs.git/commitdiff
(sendmail-send-it):
authorRichard M. Stallman <rms@gnu.org>
Thu, 28 May 1998 03:49:04 +0000 (03:49 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 28 May 1998 03:49:04 +0000 (03:49 +0000)
If mail-from-style isn't angles, parens or nil, don't use -f option.

lisp/mail/sendmail.el

index 967655e7a2d6730a977d3ccfa326db901748736f..b9e8853d00f15c5791e7e0212c3ca79d5dd6422c 100644 (file)
@@ -846,10 +846,12 @@ the user from the mailer."
                                     nil errbuf nil "-oi")
                               ;; Always specify who from,
                               ;; since some systems have broken sendmails.
-                              (list "-f" (user-login-name))
-    ;;;                           ;; Don't say "from root" if running under su.
-    ;;;                           (and (equal (user-real-login-name) "root")
-    ;;;                                (list "-f" (user-login-name)))
+                              ;; unless user has said no.
+                              (if (memq mail-from-style '(angles parens nil))
+                                  (list "-f" (user-login-name)))
+;;;                           ;; Don't say "from root" if running under su.
+;;;                           (and (equal (user-real-login-name) "root")
+;;;                                (list "-f" (user-login-name)))
                               (and mail-alias-file
                                    (list (concat "-oA" mail-alias-file)))
                               (if mail-interactive