From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62288 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: Re: gnus / message-send-mail-with-mailclient [patch] Date: Fri, 17 Mar 2006 12:37:48 +0000 Message-ID: <553F677F-B2E1-42F3-8DBC-96734109EBA2@gmail.com> References: <059BF802-B4EB-433E-AF78-024107CD7E16@gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v746.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1142599093 22588 80.91.229.2 (17 Mar 2006 12:38:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 17 Mar 2006 12:38:13 +0000 (UTC) Cc: ding@gnus.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 17 13:38:12 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 1FKEDY-0000K1-8l for ged-emacs-devel@m.gmane.org; Fri, 17 Mar 2006 13:38:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FKEDX-00075V-Mb for ged-emacs-devel@m.gmane.org; Fri, 17 Mar 2006 07:38:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FKEDJ-000758-II for emacs-devel@gnu.org; Fri, 17 Mar 2006 07:37:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FKEDH-00070p-5K for emacs-devel@gnu.org; Fri, 17 Mar 2006 07:37:52 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FKEDH-00070c-1A for emacs-devel@gnu.org; Fri, 17 Mar 2006 07:37:51 -0500 Original-Received: from [64.233.184.195] (helo=wproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FKEI9-0005c4-3Y for emacs-devel@gnu.org; Fri, 17 Mar 2006 07:42:53 -0500 Original-Received: by wproxy.gmail.com with SMTP id i32so513739wra for ; Fri, 17 Mar 2006 04:37:49 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=lcnJXEAGA3h9E1nEmTIas+LcmDAA+wS2XBb/gbqFqg4kIKEC9K0L3YO1cdCV05cI7ibN34LGg+hTiJNSpEEtg3QyQ9KjHQ/Qf0wEkBqqqosJMIPplWkiL6doN+ZKSJ0gBc/VgW9fFN66WxmJJwuN761FCGZoXHOwc5hax7oMq/A= Original-Received: by 10.65.59.10 with SMTP id m10mr171849qbk; Fri, 17 Mar 2006 04:37:49 -0800 (PST) Original-Received: from ?129.215.174.81? ( [129.215.174.81]) by mx.gmail.com with ESMTP id q17sm661104qbq.2006.03.17.04.37.48; Fri, 17 Mar 2006 04:37:48 -0800 (PST) In-Reply-To: Original-To: Eli Zaretskii X-Mailer: Apple Mail (2.746.3) 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:51758 gmane.emacs.gnus.general:62288 Archived-At: On 17 Mar 2006, at 11:33, Eli Zaretskii wrote: >> >> +(defun message-send-mail-function () >> + "Return suitable value for the variable `message-send-mail- >> function'." >> + (cond ((and sendmail-program >> + (executable-find program)) >> + 'message-send-mail-with-sendmail) >> + ((and (locate-library "mailclient") >> + window-system >> + (memq system-type '(darwin windows-nt))) >> + 'message-send-mail-with-mailclient) >> + (t >> + 'message-smtpmail-send-it))) > > Why would you need to test that window-system is non-nil? Perhaps I'm > missing something, but I don't see anything in mailclient.el that > would require an Emacs windowed display. Can you explain? > > For that matter, why the test for system-type? Won't it work on other > systems as well? It works fine from a shell (without a window-system) and on other systems (as long as the defined mail client, i.e. mailto:// URL handler doesn't require one). That is, provided the function `message-send-mail-function' is only used to initialize the variable of the same name. The default should be `mailclient' only on specific systems - at least on Windows and probably on the Mac as well. Reiner should know more.