From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Toby Allsopp Newsgroups: gmane.emacs.devel Subject: sendmail-program default is determined at compilation time Date: Sat, 02 Sep 2006 13:51:06 +1200 Message-ID: <87zmdjdoj9.fsf@candyboy.here> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1157163644 16116 80.91.229.2 (2 Sep 2006 02:20:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 2 Sep 2006 02:20:44 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 02 04:20:43 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GJL7U-0005hr-3B for ged-emacs-devel@m.gmane.org; Sat, 02 Sep 2006 04:20:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GJL7T-0007cm-Jo for ged-emacs-devel@m.gmane.org; Fri, 01 Sep 2006 22:20:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GJL7E-0007bD-02 for emacs-devel@gnu.org; Fri, 01 Sep 2006 22:20:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GJL7A-0007V0-Er for emacs-devel@gnu.org; Fri, 01 Sep 2006 22:20:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GJL7A-0007Un-9O for emacs-devel@gnu.org; Fri, 01 Sep 2006 22:20:08 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GJLH8-0000i5-M0 for emacs-devel@gnu.org; Fri, 01 Sep 2006 22:30:26 -0400 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1GJL74-0005dm-OM for emacs-devel@gnu.org; Sat, 02 Sep 2006 04:20:02 +0200 Original-Received: from 60-234-130-144.bitstream.orcon.net.nz ([60.234.130.144]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 02 Sep 2006 04:20:02 +0200 Original-Received: from toby by 60-234-130-144.bitstream.orcon.net.nz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 02 Sep 2006 04:20:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 26 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 60-234-130-144.bitstream.orcon.net.nz User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:2Z2X/WmDERubhPHvEMCphFrCsic= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:59244 Archived-At: It seems that the default for sendmail-program is determined at (Emacs) compilation time, which means that if the situation is different at run time (e.g. if Emacs was compiled on a different machine, as is the case for binary packages for e.g. Debian) the default could be inappropriate. sendmail-program is defined in paths.el as: (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) My problem is that the default for the Debian emacs-snapshot package version 20060824-1 is "fakemail" because the machine that builds it doesn't have sendmail installed. I, however, do have /usr/sbin/sendmail, but that isn't taken into account. Is this the expected behaviour? Toby.