several common directories.
+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 `\\'
'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.