From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vyazovoi Pavel Newsgroups: gmane.emacs.help Subject: Re: Open mailto links Date: Thu, 04 Sep 2008 21:25:38 +0600 Organization: vyazovoi.info Message-ID: <87y728x79p.wl%vyazovoi@gmail.com> References: <87wshskm7m.fsf@literaturlatenight.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1220542597 6902 80.91.229.12 (4 Sep 2008 15:36:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Sep 2008 15:36:37 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 04 17:37:31 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KbGth-00050N-8O for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Sep 2008 17:37:25 +0200 Original-Received: from localhost ([127.0.0.1]:39577 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbGsi-0000Eh-5T for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Sep 2008 11:36:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KbGoT-0005tC-7t for help-gnu-emacs@gnu.org; Thu, 04 Sep 2008 11:32:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KbGoO-0005px-Av for help-gnu-emacs@gnu.org; Thu, 04 Sep 2008 11:32:00 -0400 Original-Received: from [199.232.76.173] (port=38267 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbGoO-0005pn-4R for help-gnu-emacs@gnu.org; Thu, 04 Sep 2008 11:31:56 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:39038 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KbGoN-000712-Fd for help-gnu-emacs@gnu.org; Thu, 04 Sep 2008 11:31:55 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KbGoJ-0005L0-Ll for help-gnu-emacs@gnu.org; Thu, 04 Sep 2008 15:31:51 +0000 Original-Received: from horrible-unlim.vpn.mgn.ru ([79.134.31.117]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 04 Sep 2008 15:31:51 +0000 Original-Received: from vyazovoi by horrible-unlim.vpn.mgn.ru with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 04 Sep 2008 15:31:51 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 33 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: horrible-unlim.vpn.mgn.ru In-Reply-To: <87wshskm7m.fsf@literaturlatenight.de> User-Agent: Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.7 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:57263 Archived-At: 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 >