From unknown Fri Jun 13 10:13:37 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3963: 23.0.94; Emacs on nextstep/Mac OS X should handle mailto: URLs Reply-To: Harald Hanche-Olsen , 3963@debbugs.gnu.org Resent-From: Harald Hanche-Olsen Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 29 Jul 2009 18:45:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 3963 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.124889273416116 (code B ref -1); Wed, 29 Jul 2009 18:45:04 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 29 Jul 2009 18:38:54 +0000 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 ; 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 ) id 1MWE35-00073M-7b for emacs-pretest-bug@gnu.org; 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 ) id 1MWE32-000130-L2 for emacs-pretest-bug@gnu.org; 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 ) id 1MWE31-000128-TY for emacs-pretest-bug@gnu.org; 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@129.241.15.102) 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@math.ntnu.no> To: emacs-pretest-bug@gnu.org From: Harald Hanche-Olsen 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@example.com 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 From unknown Fri Jun 13 10:13:37 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3963: 23.0.94; Emacs on nextstep/Mac OS X should handle mailto: URLs Reply-To: Teemu Likonen , 3963@debbugs.gnu.org Resent-From: Teemu Likonen Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 29 Jul 2009 19:10:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3963 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 3963-submit@emacsbugs.donarmstrong.com id=B3963.124889431521399 (code B ref 3963); Wed, 29 Jul 2009 19:10:05 +0000 Received: (at 3963) by emacsbugs.donarmstrong.com; 29 Jul 2009 19:05:15 +0000 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@emacsbugs.donarmstrong.com>; 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 ) id 1MWESX-0002VJ-Jr; Wed, 29 Jul 2009 22:05:05 +0300 From: Teemu Likonen To: Harald Hanche-Olsen Cc: 3963@debbugs.gnu.org In-Reply-To: (Harald Hanche-Olsen's message of "Wed, 29 Jul 2009 13:38:37 -0500 (CDT)") References: Date: Wed, 29 Jul 2009 22:05:05 +0300 Message-ID: <873a8fpaxq.fsf@iki.fi> 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@example.com > > 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 From unknown Fri Jun 13 10:13:37 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3963: 23.0.94; Emacs on nextstep/Mac OS X should handle mailto: URLs Reply-To: Leo , 3963@debbugs.gnu.org Resent-From: Leo Original-Sender: "Leo, Shidai Liu" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 29 Jul 2009 19:30:08 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3963 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 3963-submit@emacsbugs.donarmstrong.com id=B3963.124889577025297 (code B ref 3963); Wed, 29 Jul 2009 19:30:08 +0000 Received: (at 3963) by emacsbugs.donarmstrong.com; 29 Jul 2009 19:29:30 +0000 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@emacsbugs.donarmstrong.com>; 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 ); Wed, 29 Jul 2009 20:29:22 +0100 From: Leo To: Teemu Likonen Cc: 3963@debbugs.gnu.org, Harald Hanche-Olsen References: <873a8fpaxq.fsf@iki.fi> Date: Wed, 29 Jul 2009 20:29:21 +0100 In-Reply-To: <873a8fpaxq.fsf@iki.fi> (Teemu Likonen's message of "Wed, 29 Jul 2009 22:05:05 +0300") Message-ID: 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" 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@example.com >> >> 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 From unknown Fri Jun 13 10:13:37 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3963: 23.0.94; Emacs on nextstep/Mac OS X should handle mailto: URLs Reply-To: Teemu Likonen , 3963@debbugs.gnu.org Resent-From: Teemu Likonen Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 29 Jul 2009 19:55:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3963 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 3963-submit@emacsbugs.donarmstrong.com id=B3963.124889680228551 (code B ref 3963); Wed, 29 Jul 2009 19:55:04 +0000 Received: (at 3963) by emacsbugs.donarmstrong.com; 29 Jul 2009 19:46:42 +0000 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@emacsbugs.donarmstrong.com>; 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 ) id 1MWF6c-0002h7-Nc; Wed, 29 Jul 2009 22:46:30 +0300 From: Teemu Likonen To: Leo Cc: 3963@debbugs.gnu.org, Harald Hanche-Olsen In-Reply-To: (Leo's message of "Wed, 29 Jul 2009 20:29:21 +0100") References: <873a8fpaxq.fsf@iki.fi> Date: Wed, 29 Jul 2009 22:46:30 +0300 Message-ID: <87hbwvnug9.fsf@iki.fi> 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 From unknown Fri Jun 13 10:13:37 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3963: 23.0.94; Emacs on nextstep/Mac OS X should handle mailto: URLs Reply-To: Harald Hanche-Olsen , 3963@debbugs.gnu.org Resent-From: Harald Hanche-Olsen Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 29 Jul 2009 20:45:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3963 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 3963-submit@emacsbugs.donarmstrong.com id=B3963.12488999455376 (code B ref 3963); Wed, 29 Jul 2009 20:45:04 +0000 Received: (at 3963) by emacsbugs.donarmstrong.com; 29 Jul 2009 20:39:05 +0000 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@emacsbugs.donarmstrong.com>; 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@129.241.15.102) 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@math.ntnu.no> To: tlikonen@iki.fi Cc: 3963@debbugs.gnu.org From: Harald Hanche-Olsen In-Reply-To: <873a8fpaxq.fsf@iki.fi> References: <873a8fpaxq.fsf@iki.fi> 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 : > 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 From unknown Fri Jun 13 10:13:37 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3963: 23.0.94; Emacs on nextstep/Mac OS X should handle mailto: URLs Reply-To: Leo , 3963@debbugs.gnu.org Resent-From: Leo Original-Sender: "Leo, Shidai Liu" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 29 Jul 2009 20:55:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3963 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 3963-submit@emacsbugs.donarmstrong.com id=B3963.12489005107054 (code B ref 3963); Wed, 29 Jul 2009 20:55:07 +0000 Received: (at 3963) by emacsbugs.donarmstrong.com; 29 Jul 2009 20:48:30 +0000 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@emacsbugs.donarmstrong.com>; 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 ); Wed, 29 Jul 2009 21:48:24 +0100 From: Leo To: Teemu Likonen Cc: 3963@debbugs.gnu.org, Harald Hanche-Olsen References: <873a8fpaxq.fsf@iki.fi> <87hbwvnug9.fsf@iki.fi> Date: Wed, 29 Jul 2009 21:48:24 +0100 In-Reply-To: <87hbwvnug9.fsf@iki.fi> (Teemu Likonen's message of "Wed, 29 Jul 2009 22:46:30 +0300") Message-ID: 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" 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 From unknown Fri Jun 13 10:13:37 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3963: 23.0.94; Emacs on nextstep/Mac OS X should handle mailto: URLs Reply-To: Teemu Likonen , 3963@debbugs.gnu.org Resent-From: Teemu Likonen Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 29 Jul 2009 22:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3963 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 3963-submit@emacsbugs.donarmstrong.com id=B3963.124890624625185 (code B ref 3963); Wed, 29 Jul 2009 22:30:03 +0000 Received: (at 3963) by emacsbugs.donarmstrong.com; 29 Jul 2009 22:24:06 +0000 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@emacsbugs.donarmstrong.com>; 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 ) id 1MWHYp-00033A-U4; Thu, 30 Jul 2009 01:23:47 +0300 From: Teemu Likonen To: Harald Hanche-Olsen Cc: 3963@debbugs.gnu.org In-Reply-To: (Harald Hanche-Olsen's message of "Wed, 29 Jul 2009 15:38:53 -0500 (CDT)") References: <873a8fpaxq.fsf@iki.fi> Date: Thu, 30 Jul 2009 01:23:47 +0300 Message-ID: <87r5vznn64.fsf@iki.fi> 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 : > >> 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. From unknown Fri Jun 13 10:13:37 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3963: 23.0.94; Emacs on nextstep/Mac OS X should handle mailto: URLs Reply-To: Harald Hanche-Olsen , 3963@debbugs.gnu.org Resent-From: Harald Hanche-Olsen Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 29 Jul 2009 23:20:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3963 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 3963-submit@emacsbugs.donarmstrong.com id=B3963.12489094682891 (code B ref 3963); Wed, 29 Jul 2009 23:20:07 +0000 Received: (at 3963) by emacsbugs.donarmstrong.com; 29 Jul 2009 23:17:48 +0000 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@emacsbugs.donarmstrong.com>; 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@129.241.15.102) 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@math.ntnu.no> To: tlikonen@iki.fi Cc: 3963@debbugs.gnu.org From: Harald Hanche-Olsen In-Reply-To: <87r5vznn64.fsf@iki.fi> References: <873a8fpaxq.fsf@iki.fi> <87r5vznn64.fsf@iki.fi> 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 : > 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 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 event results. But run open -a emacs mailto:foo@example.com, and no such translation happens. - Harald From jasonrumney@gmail.com Sat Aug 1 02:18:40 2009 Received: (at control) by emacsbugs.donarmstrong.com; 1 Aug 2009 09:18:40 +0000 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,VALID_BTS_CONTROL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail-px0-f199.google.com (mail-px0-f199.google.com [209.85.216.199]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n719IaSJ030173 for ; Sat, 1 Aug 2009 02:18:37 -0700 Received: by pxi37 with SMTP id 37so1686219pxi.19 for ; Sat, 01 Aug 2009 02:18:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:received:message-id :date:from:user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=fEaUEI0AXSPs5wWc78pTNjdcE3hk+C7iyZkLDmizBGs=; b=PV22Yge0KpZbgCyj5eOP83MM+FqIz1kzKmBuFqOEHOfUUMarqvPa/lpPUihlpHdQgX FDt/uxLFupxel9AbUyGermgX413f8wstj7D59jNhifprk261ADqpso9QjLI8BjbBzG5t HW0fObcvd2Qvm5uNWd/lbR0ROl+qzMX14wA9g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=FvCCPSvd5Kqrx68krlCCX1KmEWJkTl+VrC1iygrcySURxqA9nnPehenkp2EMKd5SJO J/yPb3CY9uGuVGxvnx7jykJwwOzOy/aHq9G1pS3I2FSqliqKnkZvaIQZ4ErX5gK18T3D O3xBElfWfPrTDv0zHev3+7EhhpwEqvs5rfFCs= Received: by 10.114.169.10 with SMTP id r10mr5115435wae.140.1249118311173; Sat, 01 Aug 2009 02:18:31 -0700 (PDT) Received: from wanchan.jasonrumney.net ([118.101.136.103]) by mx.google.com with ESMTPS id j15sm6847383waf.16.2009.08.01.02.18.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 01 Aug 2009 02:18:30 -0700 (PDT) Sender: Jason Rumney Received: from wanchan.jasonrumney.net (localhost [127.0.0.1]) by wanchan.jasonrumney.net (Postfix) with ESMTP id 6741F787 for ; Sat, 1 Aug 2009 17:18:27 +0800 (MYT) Message-ID: <4A740862.6050200@gnu.org> Date: Sat, 01 Aug 2009 17:18:26 +0800 From: Jason Rumney User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103) MIME-Version: 1.0 To: control@debbugs.gnu.org Subject: Reassign platform specific bugs Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit reassign 3456 emacs,w32 reassign 3710 emacs,ns reassign 3843 emacs,w32 reassign 3859 emacs,w32 reassign 3963 emacs,ns reassign 3979 emacs,ns reassign 3988 emacs,ns reassign 3992 emacs,ns reassign 3994 emacs,ns reassign 4001 emacs,ns merge 3992 4001 From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 21 00:18:38 2011 Received: (at control) by debbugs.gnu.org; 21 Jul 2011 04:18:39 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qjkic-0002D3-FX for submit@debbugs.gnu.org; Thu, 21 Jul 2011 00:18:38 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qjkia-0002Cr-IV for control@debbugs.gnu.org; Thu, 21 Jul 2011 00:18:37 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1QjkiV-0000of-5S for control@debbugs.gnu.org; Thu, 21 Jul 2011 00:18:31 -0400 Date: Thu, 21 Jul 2011 00:18:31 -0400 Message-Id: Subject: control message for bug 9135 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) forcemerge 1367 3963 9135 From unknown Fri Jun 13 10:13:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#3963: bug#1367: 23.0.60; Mailto service won't work Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Dec 2021 21:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 3963 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Harald Hanche-Olsen Cc: Alan Third , 1367@debbugs.gnu.org, 3963@debbugs.gnu.org Received: via spool by 3963-submit@debbugs.gnu.org id=B3963.163865378511830 (code B ref 3963); Sat, 04 Dec 2021 21:37:02 +0000 Received: (at 3963) by debbugs.gnu.org; 4 Dec 2021 21:36:25 +0000 Received: from localhost ([127.0.0.1]:55408 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtchk-00034j-Uk for submit@debbugs.gnu.org; Sat, 04 Dec 2021 16:36:25 -0500 Received: from quimby.gnus.org ([95.216.78.240]:41826) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtchj-00034L-FU; Sat, 04 Dec 2021 16:36:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ro8/38gvvvFlXrbFKDZiUKNDf07pE/NVKd4aexNMF30=; b=FrbAFUQI+ilztpunWk2X2iiHVO S8OP+LBlv9AQiFloe1/soaMP4ysyEnsGzPDqqNL0BFAxzfQyiw5mVXziEKs3qM9mD1K0Kkb257uq7 pJpjgeRjlNSvs4hcVb8fhDsWDFd41PYCRTMEk5JxilmwxQKGdu4pJZUltiEsPa1s52yg=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mtchZ-0000iH-LW; Sat, 04 Dec 2021 22:36:16 +0100 From: Lars Ingebrigtsen References: <20090729.133837.244227487.hanche@math.ntnu.no> X-Now-Playing: Joni Mitchell's _The Hissing Of Summer Lawns_: "The Hissing of Summer Lawns" Date: Sat, 04 Dec 2021 22:36:10 +0100 In-Reply-To: <20090729.133837.244227487.hanche@math.ntnu.no> (Harald Hanche-Olsen's message of "Wed, 29 Jul 2009 13:38:37 -0500 (CDT)") Message-ID: <87y250yrw5.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Harald Hanche-Olsen writes: > 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 favourit [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Harald Hanche-Olsen writes: > 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@example.com > > 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. (I'm going through old bug reports that unfortunately weren't resolved at the time.) This behaviour is still present in Emacs 29. I.e., it just foregrounds the Emacs frame, and then nothing else. Yamamoto said: > What Carbon or Cocoa applications receive is an Apple event: > > http://developer.apple.com/documentation/Cocoa/Conceptual/ScriptableCocoaApplications/SApps_handle_AEs/chapter_11_section_4.html > > Core functionalities such as "open documents" and "quit application" > also send some corresponding Apple events, and Cocoa applications > usually handle them via some application delegate methods. > > http://developer.apple.com/documentation/Cocoa/Conceptual/ScriptableCocoaApplications/SApps_handle_AEs/chapter_11_section_3.html So I guess we're just not handling that event? It'd be cool if we could; adding Alan to the CCs. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no