From: Vyazovoi Pavel <vyazovoi@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Open mailto links
Date: Thu, 04 Sep 2008 21:25:38 +0600 [thread overview]
Message-ID: <87y728x79p.wl%vyazovoi@gmail.com> (raw)
In-Reply-To: <87wshskm7m.fsf@literaturlatenight.de>
At Thu, 04 Sep 2008 16:41:17 +0200,
henry atting wrote:
Something like this:
(defun my-message-mail (mail)
"my message-mail alternative"
(if (< (length (split-string mail "subject=")) 2)
(message-mail (nth 1 (split-string mail ":")))
(message-mail (nth 1 (split-string mail "[:?]")) (nth 1 (split-string mail "subject=")))))
>
> Within iceweasel I open mailto links with this small script:
>
> --8<---------------cut here---------------end--------------->8---
>
> #!/bin/sh
> /usr/bin/emacsclient -e "(message-mail \"$1\")"
>
> --8<---------------cut here---------------end--------------->8---
>
> It works but the address is filled in with `mailto` preceeded, like
> this:
> mailto: a@address.fl
>
> It's same when I click on a mailto within emacs-w3m.
>
> Any hints?
>
> Cheers
> henry
>
next prev parent reply other threads:[~2008-09-04 15:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-04 14:41 Open mailto links henry atting
2008-09-04 15:25 ` Vyazovoi Pavel [this message]
2008-09-04 15:41 ` Tassilo Horn
2008-09-04 15:59 ` Thierry Volpiatto
[not found] ` <mailman.18423.1220544200.18990.help-gnu-emacs@gnu.org>
2008-09-05 5:21 ` henry atting
2008-09-05 19:57 ` Richard G Riley
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=87y728x79p.wl%vyazovoi@gmail.com \
--to=vyazovoi@gmail.com \
--cc=help-gnu-emacs@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.
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).