[530] in SIPB_Linux_Development

home help back first fref pref prev next nref lref last post

^XM problem in emacs

daemon@ATHENA.MIT.EDU (ghudson@MIT.EDU)
Mon Mar 21 18:19:50 1994

From: ghudson@MIT.EDU
Date: Mon, 21 Mar 94 18:19:41 -0500
To: linux-dev@MIT.EDU
Cc: linux-help@MIT.EDU


When you use ^XM (M-x mail) in emacs, and send a message on most Linux
systems, it will use fakemail instead of /usr/lib/sendmail.  This is
true under Slackware, I think, and on quiche.

This is why you see mail from me with no subject line in the header.
Kind of annoying, that.

The reason why is uses fakemail is that the following code from
paths.el:

	(defconst sendmail-program
	  (cond
	    ((file-exists-p "/usr/lib/sendmail") "/usr/lib/sendmail")
	    ((file-exists-p "/usr/sbin/sendmail") "/usr/sbin/sendmail")
	    ((file-exists-p "/usr/ucblib/sendmail") "/usr/ucblib/sendmail")
	    (t "fakemail"))                     ;In ../etc, to interface to /bin/mail.
	  "Program used to send messages.")

was run when emacs was dumped, and emacs was dumped when none of those
three programs existed.  This is what we like to call a "design flaw"
in academia.

At any rate, you can solve the problem by adding the following to
defaults.el in /usr/lib/emacs/19.22/lisp (or whatever your version
number is):

	(setq sendmail-program "/usr/lib/sendmail")

(You may need to create a defaults.el if none exists.)  Thanks to
Derek for pointing out that emacs was using fakemail.

--GBH


home help back first fref pref prev next nref lref last post