From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: Re: gnus / message-send-mail-with-mailclient [patch] Date: Fri, 24 Mar 2006 15:29:16 +0100 Message-ID: References: <059BF802-B4EB-433E-AF78-024107CD7E16@gmail.com> <553F677F-B2E1-42F3-8DBC-96734109EBA2@gmail.com> Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1143210587 23095 80.91.229.2 (24 Mar 2006 14:29:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 24 Mar 2006 14:29:47 +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 24 15:29:44 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 1FMnIL-0005BU-Bs for ged-emacs-devel@m.gmane.org; Fri, 24 Mar 2006 15:29:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FMnIL-0006uk-Gr for ged-emacs-devel@m.gmane.org; Fri, 24 Mar 2006 09:29:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FMnI6-0006th-HD for emacs-devel@gnu.org; Fri, 24 Mar 2006 09:29:26 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FMnI5-0006sg-A8 for emacs-devel@gnu.org; Fri, 24 Mar 2006 09:29:25 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FMnI5-0006sQ-5o for emacs-devel@gnu.org; Fri, 24 Mar 2006 09:29:25 -0500 Original-Received: from [134.60.1.1] (helo=mail.uni-ulm.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FMnIu-0004fN-29 for emacs-devel@gnu.org; Fri, 24 Mar 2006 09:30:16 -0500 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.123]) by mail.uni-ulm.de (8.13.6/8.13.6) with ESMTP id k2OETGnH021821; Fri, 24 Mar 2006 15:29:16 +0100 (MET) Original-Received: by bridgekeeper.physik.uni-ulm.de (Postfix, from userid 170) id 1E2D811014; Fri, 24 Mar 2006 15:29:16 +0100 (CET) Original-To: David Reitter X-Face: .*T0'iU(sujq_j9\J>-d4fg; N/1++U#U$_5ii6k.=|"-n'?5O:Hyz&wi'-!I~,}7~GgT=0S /&-R5sbkNy5+Xo1y{Tw2KKxi@Xh"g@]Qc|.U<*]WDd)qvGowFDvfU1F]{EDho:7P0@|oOD=Bc{K4?> WP68K[Mx:}=`ZT'6g4'f+g?;`vri2!)xGy}3:=l'(/Cea0l4lo^H5#@/Z3ev Mail-Copies-To: nobody User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-DCC-WEiAPG-Metrics: gemini 1072; Body=3 Fuz1=3 Fuz2=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:52033 gmane.emacs.gnus.general:62398 Archived-At: On Wed, Mar 22 2006, David Reitter wrote: [ Apparently you message didn't make it to the list (yet) => Not trimming the quotes. Please keep emacs-devel and ding@gnus in Cc. ] > On 18 Mar 2006, at 11:44, Reiner Steib wrote: >> Eli Zaretskii wrote: >>> So I think mailclient should be used in preference to smtpmail. >> >> If the user (or site admin) has configured >> `smtpmail-[default-]smtp-server' (or $SMTPSERVER) I think we can >> assume that it works. Else the user can customize the variable >> `message-send-mail-function'. >> >> I'd like to add `mailclient.el' to Gnus' contrib directory so that >> Emacs 21 (or XEmacs) users can also use it. David, WDYT? > > I just tried out mailclient on emacs 21 on my FC3 (KDE) installation > (where Firefox 1.06 is the standard web browser and reacts to > browse- url). Turns out that there, browse-url does not work with > mailto URLs. No feedback is given, and Emacs wrongly states that the > e-mail is sent. > > browse-url-browser-function is set to `htmlview', which seems to be > the default. > > On Darwin/OS X, Emacs 21 in the terminal works just fine with > mailclient. > > In conclusion I'd say: yes, offer it to Emacs 21 users. Thanks for your feedback. I will add it in contrib and change the `message-send-mail-function' after the upcoming release of Gnus 5.10.8. > However, do not use mailclient as a preference to zero-configuration > methods (sendmail) on GNU/Linux systems. As for `smtpmail', I can't > tell. But at least one would think that smtpmail shows an error > message in case it hasn't been configured (with a server), right? > That's better than showing nothing or misleading the user. ELISP> (and (locate-library "smtpmail") (require 'smtpmail) smtpmail-default-smtp-server) nil ELISP> (setq message-send-mail-function 'message-smtpmail-send-it) message-smtpmail-send-it ==> smtpmail-via-smtp: `smtpmail-smtp-server' not defined For sendmail, we also get a warning: ELISP> (setq sendmail-program "/foo/bar/baz") "/foo/bar/baz" ELISP> (setq message-send-mail-function 'message-send-mail-with-sendmail) message-send-mail-with-sendmail ==> Searching for program: no such file or directory, /foo/bar/baz > Maybe we should caution users appropriately if mailclient is used on > systems where we can't guarantee reliability? I can't think of a reliable way to check if the application called by `browse-url' handled the mailto link correctly. At least, `mailclient-send-it' could inform the user what it does. Something like "Delegating [shortened-mailto-stuff] to `browse-url'...". Maybe including the value of `browse-url-browser-function' in the message. Note that `browse-url-browser-function' might be a (REGEXP . FUNCTION) list. Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/