unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Jeff Clough <jeff@chaosphere.com>
To: emacs-devel@gnu.org
Subject: Re: mailclient-send-it usage of browse-url
Date: Wed, 14 Apr 2010 07:41:34 -0400	[thread overview]
Message-ID: <m3mxx6z2fl.fsf@logrus.localdomain> (raw)
In-Reply-To: <m2vdbu67m0.fsf@defun.dk> (Christian Lynbech's message of "Wed, 14 Apr 2010 05:22:31 +0200")

Christian Lynbech <christian@defun.dk> writes:

> While it could be that emacs-w3m does not do the right thing with
> mailto, it is still so that one cannot really know what `browse-url'
> really points to.
>
> Wouldn't it be a solution to just directly do what `browse-url' was
> normally expected to do rather than relying on the user or the
> third-party package having set everything up correctly?

I believe the issue is that it is important for Emacs to have a way to
send mail messages even if the user doesn't use it for mail.  Sending
bug reports is a great example of this.

The problem is that there is not one universal way to ask an operating
system "How do I send a mail message?" and get an honest answer.  Under
Unix, you have tools like sendmail that are virtually guaranteed to be
there.  Under Windows, the Mac and other systems, not so much.

A clever way around this is to fire up what Emacs thinks is the system
browser and feed it a mailto: link.  It's a hack, but given the
alternatives it's probably the right thing.  browse-url should work out
of the box on most systems.

If engineering were going to be done to make this better, it should
probably start with finding a way to really ask the question "What is
your mail client?"  I think most of the machines this is an issue for
now have some variable "Mail User Agent" buried in a configuration file
or registry now.  I don't know that that makes the problem really any
easier to solve than it was before.

Jeff





  reply	other threads:[~2010-04-14 11:41 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-13 19:51 mailclient-send-it usage of browse-url Christian Lynbech
2010-04-13 22:06 ` David Reitter
2010-04-14  3:22   ` Christian Lynbech
2010-04-14 11:41     ` Jeff Clough [this message]
2010-04-14 13:07       ` christian.lynbech
2010-04-14 13:25         ` David Reitter
2010-04-15  7:46           ` christian.lynbech
     [not found]             ` <C8D541C4-F87C-48F8-917C-5A4C6AC02203@mit.edu>
2010-04-15 16:49               ` chad
2010-04-14 13:36         ` Jeff Clough
2010-04-14 16:02           ` David Reitter
2010-04-14 16:35             ` Chad Brown
2010-04-14 16:41             ` Jeff Clough
2010-04-14 17:46               ` David Reitter
2010-04-14 23:19                 ` Lennart Borgman
2010-04-15  2:28                 ` Stephen J. Turnbull
2010-04-15  7:52                   ` christian.lynbech
2010-04-15 17:13                     ` Stephen J. Turnbull
2010-04-15 18:48                     ` Richard Stallman
2010-04-16  8:05                       ` christian.lynbech
2010-04-17 19:55                         ` Richard Stallman
2010-04-14 19:58           ` David De La Harpe Golden
2010-04-14 14:23         ` Stefan Monnier
2010-04-15  8:14           ` christian.lynbech
2010-04-14 12:55     ` David Reitter
2010-04-14 13:20       ` christian.lynbech
2010-04-14 13:30         ` David Reitter
     [not found] <D6FDF877-2199-48E7-8B06-4E6325EDEAC9@mit.edu>
2010-04-15 16:49 ` Fwd: " chad
2010-04-15 17:15   ` Lennart Borgman
2010-04-15 17:22     ` Chad Brown
2010-04-15 19:00       ` Lennart Borgman
2010-04-16  0:14     ` Stefan Monnier
2010-04-16  0:34       ` Lennart Borgman
2010-04-16  1:08         ` Stefan Monnier
2010-04-16 11:13           ` Lennart Borgman
2010-04-16 12:49             ` Stefan Monnier

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=m3mxx6z2fl.fsf@logrus.localdomain \
    --to=jeff@chaosphere.com \
    --cc=emacs-devel@gnu.org \
    /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).