GNU bug report logs - #3963
23.0.94; Emacs on nextstep/Mac OS X should handle mailto: URLs

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Harald Hanche-Olsen <hanche@HIDDEN>; merged with #1367, #9135; dated Wed, 29 Jul 2009 18:45:04 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Forcibly Merged 1367 3963 9135. Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
bug reassigned from package `emacs' to `emacs,ns'. Request was from Jason Rumney <jasonr@HIDDEN> to control@HIDDEN. Full text available.

Message received at 3963@HIDDEN:


Received: (at 3963) by emacsbugs.donarmstrong.com; 29 Jul 2009 23:17:48 +0000
From hanche+bounces@HIDDEN Wed Jul 29 16:17:47 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-4.3 required=4.0 tests=AWL,HAS_BUG_NUMBER
	autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02
Received: from abel.math.ntnu.no (abel.math.ntnu.no [129.241.15.50])
	by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with SMTP id n6TNHgGG002880
	for <3963@HIDDEN>; Wed, 29 Jul 2009 16:17:43 -0700
Received: (qmail 23875 invoked from network); 29 Jul 2009 23:17:38 -0000
Received: from gauss.math.ntnu.no (HELO localhost) (hanche@HIDDEN)
  by abel.math.ntnu.no with ESMTPA; 29 Jul 2009 23:17:38 -0000
Date: Wed, 29 Jul 2009 18:17:35 -0500 (CDT)
Message-Id: <20090729.181735.138410089.hanche@HIDDEN>
To: tlikonen@HIDDEN
Cc: 3963 <at> debbugs.gnu.org
Subject: Re: bug#3963: 23.0.94; Emacs on nextstep/Mac OS X should handle
 mailto: URLs
From: Harald Hanche-Olsen <hanche@HIDDEN>
In-Reply-To: <87r5vznn64.fsf@HIDDEN>
References: <873a8fpaxq.fsf@HIDDEN>
	<mailman.3417.1248901060.2239.bug-gnu-emacs@HIDDEN>
	<87r5vznn64.fsf@HIDDEN>
X-URL: http://www.math.ntnu.no/~hanche/
X-Mailer: Mew version 6.2.51 on Emacs 23.0.94 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

+ Teemu Likonen <tlikonen@HIDDEN>:

> 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.

But firefox, on the mac, cannot be configured to use an arbitrary
program or shell script as the mail client. It wants a full-blown Mac
application, which it can activate and then send an Apple event to.
Or have I misunderstood something?

> For example, I have configured my Firefox and my KDE
> desktop environment to use that shell script as mail client program.
> Works nicely.

But I am not talking about KDE. I am talking about Mac OS X and its
native GUI.

Now I have been wasting time digging around in ns-win.el and
term/nsterm.m to try to figure out how all this works, but I am not
familiar with OS X internals nor can I read Objective C, so it all
makes my head spin.

But I can figure out some bits: If I run open -a emacs FILENAME in a
terminal, this apparently results in an event handled by [NXapp run]
and gets transferred into an <ns-open-file-line> event which is
handled by the usual emacs event loop. Similarly, if I use the service
menu in another app to ask emacs to do something, a
<ns-spi-service-call> event results. But run open -a emacs
mailto:foo@HIDDEN, and no such translation happens.

- Harald



Acknowledgement sent to Harald Hanche-Olsen <hanche@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#3963; Package emacs. Full text available.

Message received at 3963@HIDDEN:


Received: (at 3963) by emacsbugs.donarmstrong.com; 29 Jul 2009 22:24:06 +0000
From tlikonen@HIDDEN Wed Jul 29 15:24:05 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-2.2 required=4.0 tests=AWL,HAS_BUG_NUMBER
	autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02
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@HIDDEN>; Wed, 29 Jul 2009 15:24:01 -0700
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
Received: from dtw by mithlond.arda.local with local (Exim 4.69)
	(envelope-from <tlikonen@HIDDEN>)
	id 1MWHYp-00033A-U4; Thu, 30 Jul 2009 01:23:47 +0300
From: Teemu Likonen <tlikonen@HIDDEN>
To: Harald Hanche-Olsen <hanche@HIDDEN>
Cc: 3963 <at> debbugs.gnu.org
Subject: Re: bug#3963: 23.0.94; Emacs on nextstep/Mac OS X should handle mailto: URLs
In-Reply-To: <mailman.3417.1248901060.2239.bug-gnu-emacs@HIDDEN> (Harald
	Hanche-Olsen's message of "Wed, 29 Jul 2009 15:38:53 -0500 (CDT)")
References: <mailman.3406.1248893864.2239.bug-gnu-emacs@HIDDEN>
	<873a8fpaxq.fsf@HIDDEN>
	<mailman.3417.1248901060.2239.bug-gnu-emacs@HIDDEN>
Date: Thu, 30 Jul 2009 01:23:47 +0300
Message-ID: <87r5vznn64.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

On 2009-07-29 15:38 (-0500), Harald Hanche-Olsen wrote:

> + Teemu Likonen <tlikonen@HIDDEN>:
>
>> 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.



Acknowledgement sent to Teemu Likonen <tlikonen@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#3963; Package emacs. Full text available.

Message received at 3963@HIDDEN:


Received: (at 3963) by emacsbugs.donarmstrong.com; 29 Jul 2009 20:48:30 +0000
From sl392@HIDDEN Wed Jul 29 13:48:30 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-3.7 required=4.0 tests=AWL,HAS_BUG_NUMBER,
	MURPHY_DRUGS_REL8,MURPHY_WRONG_WORD1,MURPHY_WRONG_WORD2 autolearn=ham
	version=3.2.5-bugs.debian.org_2005_01_02
Received: from ppsw-1.csi.cam.ac.uk (ppsw-1.csi.cam.ac.uk [131.111.8.131])
	by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6TKmPF9007048
	for <3963@HIDDEN>; Wed, 29 Jul 2009 13:48:26 -0700
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: not scanned
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from smaug.linux.pwf.cam.ac.uk ([193.60.95.72]:51995)
	by ppsw-1.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.151]:587)
	with esmtpsa (LOGIN:sl392) (TLSv1:DHE-RSA-AES256-SHA:256)
	id 1MWG4W-0007Dr-5f (Exim 4.70)
	(return-path <sl392@HIDDEN>); Wed, 29 Jul 2009 21:48:24 +0100
From: Leo <sdl.web@HIDDEN>
To: Teemu Likonen <tlikonen@HIDDEN>
Cc: 3963 <at> debbugs.gnu.org, Harald Hanche-Olsen <hanche@HIDDEN>
Subject: Re: bug#3963: 23.0.94; Emacs on nextstep/Mac OS X should handle mailto: URLs
References: <mailman.3406.1248893864.2239.bug-gnu-emacs@HIDDEN>
	<873a8fpaxq.fsf@HIDDEN> <xbair5vze19q.fsf@HIDDEN>
	<87hbwvnug9.fsf@HIDDEN>
Date: Wed, 29 Jul 2009 21:48:24 +0100
In-Reply-To: <87hbwvnug9.fsf@HIDDEN> (Teemu Likonen's message of "Wed, 29 Jul
	2009 22:46:30 +0300")
Message-ID: <xbaihbwvdxlz.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: "Leo, Shidai Liu" <sl392@HIDDEN>

On 2009-07-29 20:46 +0100, Teemu Likonen wrote:
> On 2009-07-29 20:29 (+0100), Leo wrote:
>
>>> http://www.emacswiki.org/emacs/MailtoHandler
>>
>> There are already a few functions to handle mailto in Emacs for
>> example url-mailto.
>
> I have tried that but didn't manage to make it do anything useful. It
> requires RFC2368 decoding, then splitting URLs fields, then RFC2047
> decoding. URL-MAILTO does not seem to do those. Here's a test URL:
>
> mailto:test@invalid?subject=%3d%3fUTF-8%3fB%3fVGVzdGluZyDigJ1zdHVmZuKAnQo%3d%3f%3d&cc=test2@invalid

Maybe a patch could be proposed to Emacs?

-- 
Leo's Emacs uptime: 49 days, 7 hours, 8 minutes, 27 seconds



Acknowledgement sent to Leo <sdl.web@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#3963; Package emacs. Full text available.

Message received at 3963@HIDDEN:


Received: (at 3963) by emacsbugs.donarmstrong.com; 29 Jul 2009 20:39:05 +0000
From hanche+bounces@HIDDEN Wed Jul 29 13:39:05 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-4.5 required=4.0 tests=AWL,HAS_BUG_NUMBER
	autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02
Received: from abel.math.ntnu.no (abel.math.ntnu.no [129.241.15.50])
	by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with SMTP id n6TKcx09005351
	for <3963@HIDDEN>; Wed, 29 Jul 2009 13:39:01 -0700
Received: (qmail 13783 invoked from network); 29 Jul 2009 20:38:56 -0000
Received: from gauss.math.ntnu.no (HELO localhost) (hanche@HIDDEN)
  by abel.math.ntnu.no with ESMTPA; 29 Jul 2009 20:38:56 -0000
Date: Wed, 29 Jul 2009 15:38:53 -0500 (CDT)
Message-Id: <20090729.153853.237930317.hanche@HIDDEN>
To: tlikonen@HIDDEN
Cc: 3963 <at> debbugs.gnu.org
Subject: Re: bug#3963: 23.0.94; Emacs on nextstep/Mac OS X should handle
 mailto: URLs
From: Harald Hanche-Olsen <hanche@HIDDEN>
In-Reply-To: <873a8fpaxq.fsf@HIDDEN>
References: <mailman.3406.1248893864.2239.bug-gnu-emacs@HIDDEN>
	<873a8fpaxq.fsf@HIDDEN>
X-URL: http://www.math.ntnu.no/~hanche/
X-Mailer: Mew version 6.2.51 on Emacs 23.0.94 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

+ Teemu Likonen <tlikonen@HIDDEN>:

> 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?

- Harald



Acknowledgement sent to Harald Hanche-Olsen <hanche@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#3963; Package emacs. Full text available.

Message received at 3963@HIDDEN:


Received: (at 3963) by emacsbugs.donarmstrong.com; 29 Jul 2009 19:46:42 +0000
From tlikonen@HIDDEN Wed Jul 29 12:46:42 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-2.0 required=4.0 tests=AWL,HAS_BUG_NUMBER,
	MURPHY_WRONG_WORD1,MURPHY_WRONG_WORD2 autolearn=ham
	version=3.2.5-bugs.debian.org_2005_01_02
Received: from kirsi2.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 n6TJkb0w028393
	for <3963@HIDDEN>; Wed, 29 Jul 2009 12:46:39 -0700
Received: from mithlond.arda.local (80.220.180.181) by kirsi2.inet.fi (8.5.014)
        id 49F6DD58031A5B95; Wed, 29 Jul 2009 22:46:36 +0300
Received: from dtw by mithlond.arda.local with local (Exim 4.69)
	(envelope-from <tlikonen@HIDDEN>)
	id 1MWF6c-0002h7-Nc; Wed, 29 Jul 2009 22:46:30 +0300
From: Teemu Likonen <tlikonen@HIDDEN>
To: Leo <sdl.web@HIDDEN>
Cc: 3963 <at> debbugs.gnu.org, Harald Hanche-Olsen <hanche@HIDDEN>
Subject: Re: bug#3963: 23.0.94; Emacs on nextstep/Mac OS X should handle mailto: URLs
In-Reply-To: <xbair5vze19q.fsf@HIDDEN> (Leo's message of "Wed, 29 Jul 2009
	20:29:21 +0100")
References: <mailman.3406.1248893864.2239.bug-gnu-emacs@HIDDEN>
	<873a8fpaxq.fsf@HIDDEN> <xbair5vze19q.fsf@HIDDEN>
Date: Wed, 29 Jul 2009 22:46:30 +0300
Message-ID: <87hbwvnug9.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

On 2009-07-29 20:29 (+0100), Leo wrote:

>> http://www.emacswiki.org/emacs/MailtoHandler
>
> There are already a few functions to handle mailto in Emacs for
> example url-mailto.

I have tried that but didn't manage to make it do anything useful. It
requires RFC2368 decoding, then splitting URLs fields, then RFC2047
decoding. URL-MAILTO does not seem to do those. Here's a test URL:

mailto:test@invalid?subject=%3d%3fUTF-8%3fB%3fVGVzdGluZyDigJ1zdHVmZuKAnQo%3d%3f%3d&cc=test2@invalid



Acknowledgement sent to Teemu Likonen <tlikonen@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#3963; Package emacs. Full text available.

Message received at 3963@HIDDEN:


Received: (at 3963) by emacsbugs.donarmstrong.com; 29 Jul 2009 19:29:30 +0000
From sl392@HIDDEN Wed Jul 29 12:29:30 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-3.9 required=4.0 tests=AWL,HAS_BUG_NUMBER
	autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02
Received: from ppsw-1.csi.cam.ac.uk (ppsw-1.csi.cam.ac.uk [131.111.8.131])
	by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6TJTOXO025291
	for <3963@HIDDEN>; Wed, 29 Jul 2009 12:29:27 -0700
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: not scanned
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from smaug.linux.pwf.cam.ac.uk ([193.60.95.72]:52987)
	by ppsw-1.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.151]:587)
	with esmtpsa (LOGIN:sl392) (TLSv1:DHE-RSA-AES256-SHA:256)
	id 1MWEq2-0001xI-4S (Exim 4.70)
	(return-path <sl392@HIDDEN>); Wed, 29 Jul 2009 20:29:22 +0100
From: Leo <sdl.web@HIDDEN>
To: Teemu Likonen <tlikonen@HIDDEN>
Cc: 3963 <at> debbugs.gnu.org, Harald Hanche-Olsen <hanche@HIDDEN>
Subject: Re: bug#3963: 23.0.94; Emacs on nextstep/Mac OS X should handle mailto: URLs
References: <mailman.3406.1248893864.2239.bug-gnu-emacs@HIDDEN>
	<873a8fpaxq.fsf@HIDDEN>
Date: Wed, 29 Jul 2009 20:29:21 +0100
In-Reply-To: <873a8fpaxq.fsf@HIDDEN> (Teemu Likonen's message of "Wed, 29 Jul
	2009 22:05:05 +0300")
Message-ID: <xbair5vze19q.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: "Leo, Shidai Liu" <sl392@HIDDEN>

On 2009-07-29 20:05 +0100, Teemu Likonen wrote:
> On 2009-07-29 13:38 (-0500), Harald Hanche-Olsen wrote:
>
>> Now click on a mailto: link in your favourite web browser, or else run
>> a command like this:  open mailto:nobody@HIDDEN
>>
>> Notice that Emacs comes to the foreground, but nothing more happens.
>> What SHOULD happen is that Emacs opens a new draft email message
>> addressed to the named recipient.
>
> As you noticed, currently Emacs doesn't handle mailto URLs. Here's my
> solution for the issue:
>
> http://www.emacswiki.org/emacs/MailtoHandler

There are already a few functions to handle mailto in Emacs for example
url-mailto.

-- 
Leo's Emacs uptime: 49 days, 5 hours, 48 minutes, 40 seconds



Acknowledgement sent to Leo <sdl.web@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#3963; Package emacs. Full text available.

Message received at 3963@HIDDEN:


Received: (at 3963) by emacsbugs.donarmstrong.com; 29 Jul 2009 19:05:15 +0000
From tlikonen@HIDDEN Wed Jul 29 12:05:15 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-2.1 required=4.0 tests=AWL,HAS_BUG_NUMBER
	autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02
Received: from jenni2.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 n6TJ59UI020737
	for <3963@HIDDEN>; Wed, 29 Jul 2009 12:05:11 -0700
Received: from mithlond.arda.local (80.220.180.181) by jenni2.inet.fi (8.5.014)
        id 4A6041DC0053982A; Wed, 29 Jul 2009 22:05:06 +0300
Received: from dtw by mithlond.arda.local with local (Exim 4.69)
	(envelope-from <tlikonen@HIDDEN>)
	id 1MWESX-0002VJ-Jr; Wed, 29 Jul 2009 22:05:05 +0300
From: Teemu Likonen <tlikonen@HIDDEN>
To: Harald Hanche-Olsen <hanche@HIDDEN>
Cc: 3963 <at> debbugs.gnu.org
Subject: Re: bug#3963: 23.0.94; Emacs on nextstep/Mac OS X should handle mailto: URLs
In-Reply-To: <mailman.3406.1248893864.2239.bug-gnu-emacs@HIDDEN> (Harald
	Hanche-Olsen's message of "Wed, 29 Jul 2009 13:38:37 -0500 (CDT)")
References: <mailman.3406.1248893864.2239.bug-gnu-emacs@HIDDEN>
Date: Wed, 29 Jul 2009 22:05:05 +0300
Message-ID: <873a8fpaxq.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

On 2009-07-29 13:38 (-0500), Harald Hanche-Olsen wrote:

> Now click on a mailto: link in your favourite web browser, or else run
> a command like this:  open mailto:nobody@HIDDEN
>
> Notice that Emacs comes to the foreground, but nothing more happens.
> What SHOULD happen is that Emacs opens a new draft email message
> addressed to the named recipient.

As you noticed, currently Emacs doesn't handle mailto URLs. Here's my
solution for the issue:

http://www.emacswiki.org/emacs/MailtoHandler



Acknowledgement sent to Teemu Likonen <tlikonen@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#3963; Package emacs. Full text available.

Message received at submit@HIDDEN:


Received: (at submit) by emacsbugs.donarmstrong.com; 29 Jul 2009 18:38:54 +0000
From hanche+bounces@HIDDEN Wed Jul 29 11:38:54 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-3.4 required=4.0 tests=AWL,FOURLA autolearn=no
	version=3.2.5-bugs.debian.org_2005_01_02
Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10])
	by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6TIclad016108
	for <submit@HIDDEN>; Wed, 29 Jul 2009 11:38:51 -0700
Received: from mail.gnu.org ([199.232.76.166]:51128 helo=mx10.gnu.org)
	by fencepost.gnu.org with esmtp (Exim 4.67)
	(envelope-from <hanche+bounces@HIDDEN>)
	id 1MWE35-00073M-7b
	for emacs-pretest-bug@HIDDEN; Wed, 29 Jul 2009 14:38:47 -0400
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60)
	(envelope-from <hanche+bounces@HIDDEN>)
	id 1MWE32-000130-L2
	for emacs-pretest-bug@HIDDEN; Wed, 29 Jul 2009 14:38:46 -0400
Received: from abel.math.ntnu.no ([129.241.15.50]:48832)
	by monty-python.gnu.org with smtp (Exim 4.60)
	(envelope-from <hanche+bounces@HIDDEN>)
	id 1MWE31-000128-TY
	for emacs-pretest-bug@HIDDEN; Wed, 29 Jul 2009 14:38:44 -0400
Received: (qmail 12366 invoked from network); 29 Jul 2009 18:38:40 -0000
Received: from gauss.math.ntnu.no (HELO localhost) (hanche@HIDDEN)
  by abel.math.ntnu.no with ESMTPA; 29 Jul 2009 18:38:40 -0000
Date: Wed, 29 Jul 2009 13:38:37 -0500 (CDT)
Message-Id: <20090729.133837.244227487.hanche@HIDDEN>
To: emacs-pretest-bug@HIDDEN
Subject: 23.0.94; Emacs on nextstep/Mac OS X should handle mailto: URLs
From: Harald Hanche-Olsen <hanche@HIDDEN>
X-URL: http://www.math.ntnu.no/~hanche/
X-Mailer: Mew version 6.2.51 on Emacs 23.0.94 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by monty-python.gnu.org: Solaris 8 (1)

In Mail.app on Mac OS X, open Preferences -> General, and select Emacs
as the the default email reader.
Quit Mail.app and never use it again. 8-)

Now click on a mailto: link in your favourite web browser, or else run
a command like this:  open mailto:nobody@HIDDEN

Notice that Emacs comes to the foreground, but nothing more happens.
What SHOULD happen is that Emacs opens a new draft email message
addressed to the named recipient.

Note that the nextstep port is already capable of similar feats, using
the Service menu in any application; but this is more important, as
users click on mailto links all the time, and we don't want to
discourage their use of Emacs for email.


In GNU Emacs 23.0.94.1 (i386-apple-darwin9.7.1, NS apple-appkit-949.46)
 of 2009-06-17 on mach.local
Windowing system distributor `Apple', version 10.3.949
configured using `configure  '--with-ns''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: nil
  value of $XMODIFIERS: nil
  locale-coding-system: nil
  default-enable-multibyte-characters: t






Acknowledgement sent to Harald Hanche-Olsen <hanche@HIDDEN>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Report forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#3963; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.