unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Teemu Likonen <tlikonen@iki.fi>
To: Harald Hanche-Olsen <hanche@math.ntnu.no>
Cc: 3963@emacsbugs.donarmstrong.com
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	[thread overview]
Message-ID: <87r5vznn64.fsf@iki.fi> (raw)
In-Reply-To: <mailman.3417.1248901060.2239.bug-gnu-emacs@gnu.org> (Harald Hanche-Olsen's message of "Wed, 29 Jul 2009 15:38:53 -0500 (CDT)")

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

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





  parent reply	other threads:[~2009-07-29 22:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.3406.1248893864.2239.bug-gnu-emacs@gnu.org>
2009-07-29 19:05 ` bug#3963: 23.0.94; Emacs on nextstep/Mac OS X should handle mailto: URLs Teemu Likonen
2009-07-29 19:29   ` Leo
2009-07-29 19:46     ` Teemu Likonen
2009-07-29 20:48       ` Leo
2009-07-29 20:38   ` Harald Hanche-Olsen
     [not found]   ` <mailman.3417.1248901060.2239.bug-gnu-emacs@gnu.org>
2009-07-29 22:23     ` Teemu Likonen [this message]
2009-07-29 23:17       ` Harald Hanche-Olsen
2009-07-29 18:38 Harald Hanche-Olsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r5vznn64.fsf@iki.fi \
    --to=tlikonen@iki.fi \
    --cc=3963@emacsbugs.donarmstrong.com \
    --cc=hanche@math.ntnu.no \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).