From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65499 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: Re: Default of message-send-mail-function Date: Tue, 30 Oct 2007 21:07:20 -0400 Message-ID: References: <200710302106.l9UL6Fa1023166@oogie-boogie.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1193792865 20268 80.91.229.12 (31 Oct 2007 01:07:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 31 Oct 2007 01:07:45 +0000 (UTC) Cc: Dan Nicolaescu , ding@gnus.org, emacs-devel@gnu.org To: Reiner Steib Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 31 02:07:45 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1In23X-0007zf-P6 for ged-emacs-devel@m.gmane.org; Wed, 31 Oct 2007 02:07:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1In23O-0002ay-B5 for ged-emacs-devel@m.gmane.org; Tue, 30 Oct 2007 21:07:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1In23L-0002ZN-1h for emacs-devel@gnu.org; Tue, 30 Oct 2007 21:07:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1In23J-0002Ye-FM for emacs-devel@gnu.org; Tue, 30 Oct 2007 21:07:26 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1In23J-0002Yb-An for emacs-devel@gnu.org; Tue, 30 Oct 2007 21:07:25 -0400 Original-Received: from tomts36.bellnexxia.net ([209.226.175.93] helo=tomts36-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1In23G-0002jM-6J for emacs-devel@gnu.org; Tue, 30 Oct 2007 21:07:22 -0400 Original-Received: from pastel.home ([74.12.208.145]) by tomts36-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20071031010720.VGKZ7990.tomts36-srv.bellnexxia.net@pastel.home> for ; Tue, 30 Oct 2007 21:07:20 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 790D18176; Tue, 30 Oct 2007 21:07:20 -0400 (EDT) In-Reply-To: (Reiner Steib's message of "Tue\, 30 Oct 2007 23\:55\:19 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Solaris 8 (1) 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:82182 gmane.emacs.gnus.general:65499 Archived-At: > Below is a patch (with an earlier version of the function > `message-send-mail-function'). I will look at the old messages > tomorrow. Unless there's a better suggestion, I'll install something > alone these lines. How 'bout initializing those vars to nil and then at the use-point fallback to a heuristic that first tries mailclient, then sendmail, then smtpmail (or some other order)? Better yet: turn this var into a list of functions that are tried in turn. This would make it possible to deal with the problem of window-system which is not a constant any more. Stefan