From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jeff Clough Newsgroups: gmane.emacs.devel Subject: Re: mailclient-send-it usage of browse-url Date: Wed, 14 Apr 2010 09:36:34 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1271252246 26514 80.91.229.12 (14 Apr 2010 13:37:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 14 Apr 2010 13:37:26 +0000 (UTC) Cc: "emacs-devel@gnu.org" To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 14 15:37:12 2010 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.69) (envelope-from ) id 1O22mA-0001x5-3v for ged-emacs-devel@m.gmane.org; Wed, 14 Apr 2010 15:37:06 +0200 Original-Received: from localhost ([127.0.0.1]:34231 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O22m9-0003OA-Ci for ged-emacs-devel@m.gmane.org; Wed, 14 Apr 2010 09:37:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O22lm-0003KK-Lm for emacs-devel@gnu.org; Wed, 14 Apr 2010 09:36:42 -0400 Original-Received: from [140.186.70.92] (port=45957 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O22lj-0003JH-3A for emacs-devel@gnu.org; Wed, 14 Apr 2010 09:36:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O22lh-0004Hy-0S for emacs-devel@gnu.org; Wed, 14 Apr 2010 09:36:39 -0400 Original-Received: from hrndva-omtalb.mail.rr.com ([71.74.56.122]:38484) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O22lg-0004Ho-Ui for emacs-devel@gnu.org; Wed, 14 Apr 2010 09:36:36 -0400 X-Authority-Analysis: v=1.1 cv=gKJQ3Gb1PwwcvLAUMhHvsTUlxXKuwkA/GVcTkdHRkTo= c=1 sm=0 a=dMxhv3uX6k0A:10 a=kj9zAlcOel0A:10 a=wN3dDBks/ChO7xvezkoALQ==:17 a=qb5RLdrWAAAA:8 a=O2KRN8bHAAAA:8 a=HXZ8gJ1WfMLaquqM6awA:9 a=zmnW1xoEgxROpppC68_9zJezSQkA:4 a=CjuIK1q_8ugA:10 a=Mbv68m0LDs4A:10 a=-a4hDESKBCwA:10 a=5ETJLGrXXqmleXQm:21 a=FKKY2KLzbZTQIUGW:21 a=wN3dDBks/ChO7xvezkoALQ==:117 X-Cloudmark-Score: 0 X-Originating-IP: 74.70.71.134 Original-Received: from [74.70.71.134] ([74.70.71.134:55400] helo=logrus.localdomain) by hrndva-oedge03.mail.rr.com (envelope-from ) (ecelerity 2.2.2.39 r()) with ESMTP id 7B/4D-16894-3E4C5CB4; Wed, 14 Apr 2010 13:36:35 +0000 In-Reply-To: (christian lynbech's message of "Wed, 14 Apr 2010 15:07:55 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.95 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:123636 Archived-At: writes: >>>>>> "Jeff" == Jeff Clough writes: > > Jeff> The problem is that there is not one universal way to ask an operating > Jeff> system "How do I send a mail message?" and get an honest answer. Under > Jeff> Unix, you have tools like sendmail that are virtually guaranteed to be > Jeff> there. Under Windows, the Mac and other systems, not so much. > > I do not about Windows, but on Mac you can (I believe) rely on the > *presence* of sendmail just as much as on other UNIX like systems. With Windows your options are mailclient-send-it and hope for the best or configure smtpmail-send-it to work. (This is one item on a very long list of things that caused my most recent move back to Linux.) > First of all you somehow need to set up browse-url. If it works out of > the box, it only does so because somebody took the time to figure what > the default should be on a Mac. In fact, looking at the default setup > for browse-url on emacs23 , it does not seem to be working out of the > box on a Mac. "browse-url.el" will search for a number of programs such > as firefox or konqueror but not Safari (which is all you can rely on on > a Mac) and if you do not have any of the browsers in your path (perhaps > because you use some desktop environment menu rather than setting up > path), it fails. If you are using emacs-w3m which I think is a quite > reasonable thing to do, the mailto: hack fails. It does seem lame that it's not looking for Safari, but then I don't know if it looks for IE on Windows. This may be a philosophical point and not a technical one, so for better or worse it just might not happen. > Secondly, browse-url is a user command and while few people may be as > multi-frame-frenzied as me, there is none the less a significant risk > that the user has tampered with the command. I think a case can be made that tampering with a browser-oriented thing shouldn't break an email-oriented thing when it is not obvious to the end user that that's what's going to happen. A case could also be made that if one knows how to tamper with browse-url, they know how to configure smtp mail correctly. > My point is that using `browse-url' is a brittle foundation for an > otherwise clever hack. I don't think this is so much that browse-url is brittle, just that a case can be made that it should work for the more defaulty browsers. The overall issue of having Emacs get the right answer to "What is your mail client?" might still ought to be addressed in a way that doesn't rely on browsers at all, which may be more possible now than it was however long ago. Jeff