changeset 86276:b284b075c181

(message-send-mail-function): Require sendmail.
author Reiner Steib <Reiner.Steib@gmx.de>
date Wed, 21 Nov 2007 07:45:36 +0000
parents 2cce56fd7361
children a8503aaf3a82
files lisp/gnus/ChangeLog lisp/gnus/message.el
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/gnus/ChangeLog	Wed Nov 21 04:55:58 2007 +0000
+++ b/lisp/gnus/ChangeLog	Wed Nov 21 07:45:36 2007 +0000
@@ -1,3 +1,7 @@
+2007-11-21  Reiner Steib  <Reiner.Steib@gmx.de>
+
+	* message.el (message-send-mail-function): Require sendmail.
+
 2007-11-20  Reiner Steib  <Reiner.Steib@gmx.de>
 
 	* message.el (message-send-mail-function): Check for smtpmail too.
--- a/lisp/gnus/message.el	Wed Nov 21 04:55:58 2007 +0000
+++ b/lisp/gnus/message.el	Wed Nov 21 07:45:36 2007 +0000
@@ -625,7 +625,9 @@
 
 (defun message-send-mail-function ()
   "Return suitable value for the variable `message-send-mail-function'."
-  (cond ((and sendmail-program
+  (cond ((and (require 'sendmail)
+	      (boundp 'sendmail-program)
+	      sendmail-program
 	      (executable-find sendmail-program))
 	 'message-send-mail-with-sendmail)
 	((and (locate-library "smtpmail")