From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christian Lynbech Newsgroups: gmane.emacs.devel Subject: mailclient-send-it usage of browse-url Date: Tue, 13 Apr 2010 21:51:10 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1271188290 27160 80.91.229.12 (13 Apr 2010 19:51:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 13 Apr 2010 19:51:30 +0000 (UTC) Cc: David Reitter To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 13 21:51:28 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 1O1m8r-0004sU-8R for ged-emacs-devel@m.gmane.org; Tue, 13 Apr 2010 21:51:25 +0200 Original-Received: from localhost ([127.0.0.1]:46377 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O1m8n-0005BW-Cr for ged-emacs-devel@m.gmane.org; Tue, 13 Apr 2010 15:51:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O1m8i-0005Ax-M4 for emacs-devel@gnu.org; Tue, 13 Apr 2010 15:51:16 -0400 Original-Received: from [140.186.70.92] (port=44435 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O1m8h-0005AW-6b for emacs-devel@gnu.org; Tue, 13 Apr 2010 15:51:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O1m8f-0002nm-PA for emacs-devel@gnu.org; Tue, 13 Apr 2010 15:51:15 -0400 Original-Received: from [188.177.171.238] (port=53424 helo=Christians-PMAC.local) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1m8e-0002nJ-Gb for emacs-devel@gnu.org; Tue, 13 Apr 2010 15:51:13 -0400 Original-Received: by Christians-PMAC.local (Postfix, from userid 501) id 34D0D223D5B3; Tue, 13 Apr 2010 21:51:10 +0200 (CEST) User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.95 (darwin) X-detected-operating-system: by eggs.gnu.org: FreeBSD 6.x (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:123595 Archived-At: I would like to question the wisdom of letting `mailclient-send-it' blindly relying on `browse-url' to send mail, especially since this is set up as the default mail sending client on mac and windows. After switching back to emacs23 on my powermac, I suddenly started getting strange behaviour when trying to send mail. I finally pulled myself together and traced what happened when I tried to send a message. I was quite surprised to see `browse-url' turn up. I am using emacs-w3m as my default browser and furthermore have adviced `browse-url' to automatically switch to my web frame so strange things was happening. It is unclear to me why this has never been a problem with Carbon Emacs and whether there is something screwy in my emacs-w3m setup. I run identical (and pretty bleeding edge) versions of emacs-w3m and gnus in both emacs 22 and emacs 23. I am certainly not fully on top of how emacs-w3m is supposed to handle mailto. My `w3m-mailto-url-function' variable is nil and then the documentation says control goes back to `mail-user-agent' which sort of looks like the receipe of an infinite loop to me. It is of course clever to appeal to a system handling of mailto: but since that OSX comes with a sendmail client, one could argue that we should do what we do for other unix systems (which I guess uses sendmail as the default). Admittedly, it didn't work out of the box (I needed to also set `mail-specify-envelope-from' to true) so using mailto may still be a good idea but shouldn't we then not at least force the choice of handling agent (ie. call the `open' shell command or the moral equivalent of `browse-url-safari'). Browse-url seems a shaky foundation for mail sending given it is anyway not well-specified what it really points to. ------------------------+----------------------------------------------------- Christian Lynbech | christian #\@ defun #\. dk ------------------------+----------------------------------------------------- Hit the philistines three times over the head with the Elisp reference manual. - petonic@hal.com (Michael A. Petonic)