[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Open mailto links
From: |
Vyazovoi Pavel |
Subject: |
Re: Open mailto links |
Date: |
Thu, 04 Sep 2008 21:25:38 +0600 |
User-agent: |
Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.7 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
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
>