]> git.eshelyaron.com Git - emacs.git/commitdiff
* message.el (message-send-mail-with-sendmail): Look for sendmail in
authorChong Yidong <cyd@stupidchicken.com>
Mon, 4 Sep 2006 14:18:10 +0000 (14:18 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Mon, 4 Sep 2006 14:18:10 +0000 (14:18 +0000)
several common directories.

lisp/gnus/ChangeLog
lisp/gnus/message.el

index c46cc3d87f9e69c11cfc49ecb134eb272b78bc4f..81d566fc856a6875508e33f8ac9e30026830d84c 100644 (file)
@@ -1,3 +1,8 @@
+2006-09-04  Chong Yidong  <cyd@stupidchicken.com>
+
+       * message.el (message-send-mail-with-sendmail): Look for sendmail in
+       several common directories.
+
 2006-09-04  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * rfc2047.el (rfc2047-strip-backslashes-in-quoted-strings): Decode `\\'
index 4ee879339670489d4748266297dcb218910a1663..f8d3a32a515cfc46c07c837e88506fcf349a7f5c 100644 (file)
@@ -3897,9 +3897,15 @@ If you always want Gnus to send messages in one piece, set
                       'call-process-region
                       (append
                        (list (point-min) (point-max)
-                             (if (boundp 'sendmail-program)
-                                 sendmail-program
-                               "/usr/lib/sendmail")
+                             (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"))
                              nil errbuf nil "-oi")
                        ;; Always specify who from,
                        ;; since some systems have broken sendmails.