comparison lisp/mail/sendmail.el @ 38285:b7db38e7d28d

(sendmail-send-it): Look at `sendmail-program' in caller buffer.
author Gerd Moellmann <gerd@gnu.org>
date Wed, 04 Jul 2001 09:54:15 +0000
parents 5474d22888af
children 2ec4983f57eb
comparison
equal deleted inserted replaced
38284:9fd6579b27ec 38285:b7db38e7d28d
796 buffer-file-coding-system)) 796 buffer-file-coding-system))
797 selected-coding 797 selected-coding
798 ;;; resend-to-addresses 798 ;;; resend-to-addresses
799 delimline 799 delimline
800 fcc-was-found 800 fcc-was-found
801 (mailbuf (current-buffer))) 801 (mailbuf (current-buffer))
802 (program (if (boundp 'sendmail-program)
803 sendmail-program
804 "/usr/lib/sendmail"))
805 (originator user-mail-address))
802 (unwind-protect 806 (unwind-protect
803 (save-excursion 807 (save-excursion
804 (set-buffer tembuf) 808 (set-buffer tembuf)
805 (erase-buffer) 809 (erase-buffer)
806 (insert-buffer-substring mailbuf) 810 (insert-buffer-substring mailbuf)
960 (coding-system-for-write 964 (coding-system-for-write
961 (or selected-coding 965 (or selected-coding
962 (select-message-coding-system))) 966 (select-message-coding-system)))
963 (args 967 (args
964 (append (list (point-min) (point-max) 968 (append (list (point-min) (point-max)
965 (if (boundp 'sendmail-program) 969 program
966 sendmail-program
967 "/usr/lib/sendmail")
968 nil errbuf nil "-oi") 970 nil errbuf nil "-oi")
969 (and mail-specify-envelope-from 971 (and mail-specify-envelope-from
970 (list "-f" user-mail-address)) 972 (list "-f" originator))
971 ;;; ;; Don't say "from root" if running under su. 973 ;;; ;; Don't say "from root" if running under su.
972 ;;; (and (equal (user-real-login-name) "root") 974 ;;; (and (equal (user-real-login-name) "root")
973 ;;; (list "-f" (user-login-name))) 975 ;;; (list "-f" (user-login-name)))
974 (and mail-alias-file 976 (and mail-alias-file
975 (list (concat "-oA" mail-alias-file))) 977 (list (concat "-oA" mail-alias-file)))