From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.bugs Subject: bug#3963: 23.0.94; Emacs on nextstep/Mac OS X should handle mailto: URLs Date: Thu, 30 Jul 2009 01:23:47 +0300 Message-ID: <87r5vznn64.fsf@iki.fi> References: <873a8fpaxq.fsf@iki.fi> Reply-To: Teemu Likonen , 3963@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1248907074 10736 80.91.229.12 (29 Jul 2009 22:37:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Jul 2009 22:37:54 +0000 (UTC) Cc: 3963@emacsbugs.donarmstrong.com To: Harald Hanche-Olsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 30 00:37:46 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MWHmL-0008CA-P2 for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 Jul 2009 00:37:46 +0200 Original-Received: from localhost ([127.0.0.1]:52797 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWHmL-0008MZ-0d for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Jul 2009 18:37:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWHmF-0008Kt-Ui for bug-gnu-emacs@gnu.org; Wed, 29 Jul 2009 18:37:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWHmB-0008GW-Fy for bug-gnu-emacs@gnu.org; Wed, 29 Jul 2009 18:37:39 -0400 Original-Received: from [199.232.76.173] (port=38456 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWHmB-0008GO-13 for bug-gnu-emacs@gnu.org; Wed, 29 Jul 2009 18:37:35 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:38415) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MWHmA-0001NM-Go for bug-gnu-emacs@gnu.org; Wed, 29 Jul 2009 18:37:34 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6TMbV0X027710; Wed, 29 Jul 2009 15:37:32 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n6TMU3PM026159; Wed, 29 Jul 2009 15:30:03 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Teemu Likonen Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 29 Jul 2009 22:30:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3963 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3963-submit@emacsbugs.donarmstrong.com id=B3963.124890624625185 (code B ref 3963); Wed, 29 Jul 2009 22:30:03 +0000 Original-Received: (at 3963) by emacsbugs.donarmstrong.com; 29 Jul 2009 22:24:06 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from kirsi1.inet.fi (mta-out.inet.fi [195.156.147.13]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6TMO0v2025172 for <3963@emacsbugs.donarmstrong.com>; Wed, 29 Jul 2009 15:24:01 -0700 Original-Received: from mithlond.arda.local (80.220.180.181) by kirsi1.inet.fi (8.5.014) id 49F6055A03263A74; Thu, 30 Jul 2009 01:23:58 +0300 Original-Received: from dtw by mithlond.arda.local with local (Exim 4.69) (envelope-from ) id 1MWHYp-00033A-U4; Thu, 30 Jul 2009 01:23:47 +0300 In-Reply-To: (Harald Hanche-Olsen's message of "Wed, 29 Jul 2009 15:38:53 -0500 (CDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Wed, 29 Jul 2009 18:37:39 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:29713 Archived-At: On 2009-07-29 15:38 (-0500), Harald Hanche-Olsen wrote: > + Teemu Likonen : > >> As you noticed, currently Emacs doesn't handle mailto URLs. Here's my >> solution for the issue: >> >> http://www.emacswiki.org/emacs/MailtoHandler > > But that requires the use of emacsclient. How do you talk firefox, > safari, camino, opera, and vienna into running emacsclient in response > to a user clicking on a mailto: link? The first issue is for emacs to > actually receive the incoming message requesting the handling of the > mailto: url. I don't know how that can be accomplished, but note that > emacs already responds correctly to "open -a emacs filename". I assume > the basic messaging mechanism must be the same? I does not require emacsclient. The regular emacs executable has --eval option too. On that web page there's a shell script. The idea is to configure it to be the mail client program. It passes the mailto URL to emacs which then does the rest using the elisp function which was also on that web page. For example, I have configured my Firefox and my KDE desktop environment to use that shell script as mail client program. Works nicely. Obviously I'd agree that it's better if Emacs did all this automatically but so far the solution on that web page is probably the easiest and technically least intrusive -- and uses existing Emacs features as much as possible. The url-mailto function which Leo mentioned tries to do many things manually. It's unnecessary because there's already rfc2368-parse-mailto-url for splitting the email fields in URLs.