Gnus development mailing list
 help / color / mirror / Atom feed
From: Steinar Bang <sb@dod.no>
To: ding@gnus.org
Subject: Re: Possible to make gnus handle mailto URLs with cc, subject and body?
Date: Sun, 07 Jun 2020 12:43:06 +0200	[thread overview]
Message-ID: <upzc1rmr2m2t.fsf@dod.no> (raw)
In-Reply-To: <87tuzoced8.fsf@tullinup.koldfront.dk>

Thanks Adam!

I will adopt your approach (or something very similar) on GNU/linux and
other unixoid systems.

But now I have to figure out if an approach can be used in windows as
well?  What happens when a mailto URL is clicked on window?

This URL shows how to change the email client used to an arbitrary
program:
 https://support.procore.com/faq/how-do-i-change-my-web-browsers-default-email-client-for-mailto-links

But what should that arbitrary program look like? How are arguments
transferred to the program?

Hm... from what I found here https://stackoverflow.com/a/1812 it looks
like it will be run as: 
 <full-path-to-executable> <mailto-URL>

So that could be handled with something similar to Adam's shell script
except probably not bourne shell?  And how well does emacsclient work on
window?

I tried it from a cmd.exe window and it seems to work, both the command
	C:\ProgramFiles\emacs-26.3-i686\bin\emacsclient.exe .emacs
and the command
	C:\ProgramFiles\emacs-26.3-i686\bin\emacsclientw.exe .emacs
opened up .emacs in a window, that could be closed with 'C-x #'

(what's the difference between emacsclient.exe and emacsclientw.exe,
btw?  Does one pop up a cmd window and one not?  Yep, emacsclientw.exe
does (probably) not open a cmd window if I interpret this correctly:
https://www.gnu.org/software/emacs/manual/html_node/emacs/Windows-Startup.html) 

I've created a c:\ProgramFiles\emacs-26.3-i686\bin\mailto-handler.bat
file, with the following contents:
C:\ProgramFiles\emacs-26.3-i686\bin\emacsclientw.exe -c --eval "(browse-url-mail \"%1\" nil)"

But testing it out turned to be harder.  Neither vivaldi nor chrome seem
to have a way of setting a handler right now.  There is no setting that
looks right and chrome://settings/handlers just opens a page where one
can switch off webpages offering to become handler.

Because appearently that's the preferred way to handle email these days:
webmail

Oh well!



  reply	other threads:[~2020-06-07 10:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-06 15:32 Steinar Bang
2020-06-06 16:28 ` Adam Sjøgren
2020-06-06 16:35   ` Adam Sjøgren
2020-06-06 17:07     ` Adam Sjøgren
2020-06-07 10:43       ` Steinar Bang [this message]
2020-06-07 11:03         ` Adam Sjøgren

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

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

  git send-email \
    --in-reply-to=upzc1rmr2m2t.fsf@dod.no \
    --to=sb@dod.no \
    --cc=ding@gnus.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.
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 NNTP newsgroup(s).