* mail/feedmail.el (feedmail-buffer-to-sendmail): Look for
authorChong Yidong <cyd@stupidchicken.com>
Mon, 4 Sep 2006 14:17:12 +0000 (14:17 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Mon, 4 Sep 2006 14:17:12 +0000 (14:17 +0000)
sendmail in several common directories.

* mail/sendmail.el (sendmail-program): Moved here from pathe.el.

* paths.el (sendmail-program): Removed.

lisp/ChangeLog
lisp/mail/feedmail.el
lisp/mail/sendmail.el
lisp/paths.el

index 9013d01..ac654f6 100644 (file)
@@ -1,3 +1,12 @@
+2006-09-04  Chong Yidong  <cyd@stupidchicken.com>
+
+       * mail/feedmail.el (feedmail-buffer-to-sendmail): Look for
+       sendmail in several common directories.
+
+       * mail/sendmail.el (sendmail-program): Moved here from pathe.el.
+
+       * paths.el (sendmail-program): Removed.
+
 2006-09-04  Daiki Ueno  <ueno@unixuser.org>
 
        * pgg-gpg.el (pgg-gpg-process-region): Revert two patches from Satyaki
index 3bd2875..04928fb 100644 (file)
@@ -1340,7 +1340,15 @@ complicated cases."
   (set-buffer prepped)
   (apply '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 errors-to nil "-oi" "-t")
                 ;; provide envelope "from" to sendmail; results will vary
                 (list "-f" user-mail-address)
index 2846320..288e5bd 100644 (file)
   :group 'sendmail
   :version "22.1")
 
+(defcustom sendmail-program
+  (cond
+    ((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"))                    ;In ../etc, to interface to /bin/mail.
+  "Program used to send messages."
+  :group 'mail
+  :type 'file)
+
 ;;;###autoload
 (defcustom mail-from-style 'angles
   "Specifies how \"From:\" fields look.
index 846f917..022f12d 100644 (file)
@@ -159,16 +159,6 @@ The `ORGANIZATION' environment variable is used instead if defined.")
   "Name of directory used by system mailer for delivering new mail.
 Its name should end with a slash.")
 
-(defcustom sendmail-program
-  (cond
-    ((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"))                    ;In ../etc, to interface to /bin/mail.
-  "Program used to send messages."
-  :group 'mail
-  :type 'file)
-
 (defcustom remote-shell-program
   (cond
    ;; Some systems use rsh for the remote shell; others use that name for the