[gnus git] branch master updated: n0-17-37-gf16fd31 =1= message.el (message-send-mail-with-sendmail): Assume sendmail-program is bound, since this function requires sendmail.

Katsumi Yamaoka <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  f16fd3138546268f54cecb4ad4a6268e0b13e98f (commit)
      from  af024d2c0eff0a70d716f41c064e687bf21df4e7 (commit)


- Log -----------------------------------------------------------------
commit f16fd3138546268f54cecb4ad4a6268e0b13e98f
Author: Glenn Morris <[email protected]>
Date:   Fri May 13 03:29:56 2011 +0000

    message.el (message-send-mail-with-sendmail): Assume sendmail-program is bound, since this function requires sendmail.

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 3968e80..ae4bfad 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2011-05-13  Glenn Morris  <[email protected]>
+
+	* message.el (message-send-mail-with-sendmail): Assume sendmail-program
+	is bound, since this function requires sendmail.
+
 2011-05-11  Teodor Zlatanov  <[email protected]>
 
 	* registry.el (registry-usage-test): Disable pruning test.
diff --git a/lisp/message.el b/lisp/message.el
index b26de63..d1457c5 100644
--- a/lisp/message.el
+++ b/lisp/message.el
@@ -4665,6 +4665,8 @@ If you always want Gnus to send messages in one piece, set
     (set-buffer mailbuf)
     (push 'mail message-sent-message-via)))
 
+(defvar sendmail-program)
+
 (defun message-send-mail-with-sendmail ()
   "Send off the prepared buffer with sendmail."
   (require 'sendmail)
@@ -4700,16 +4702,7 @@ If you always want Gnus to send messages in one piece, set
 		 (cpr (apply
 		       'call-process-region
 		       (append
-			(list (point-min) (point-max)
-			      (cond ((boundp 'sendmail-program)
-				     sendmail-program)
-				    ((file-exists-p "/usr/sbin/sendmail")
-				     "/usr/sbin/sendmail")
-				    ((file-exists-p "/usr/lib/sendmail")
-				     "/usr/lib/sendmail")
-				    ((file-exists-p "/usr/ucblib/sendmail")
-				     "/usr/ucblib/sendmail")
-				    (t "fakemail"))
+			(list (point-min) (point-max) sendmail-program
 			      nil errbuf nil "-oi")
 			message-sendmail-extra-arguments
 			;; Always specify who from,

-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.

Summary of changes:
 lisp/ChangeLog  |    5 +++++
 lisp/message.el |   13 +++----------
 2 files changed, 8 insertions(+), 10 deletions(-)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".

The branch, master has been updated


hooks/post-receive
-- 
Gnus Project
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.