From mboxrd@z Thu Jan  1 00:00:00 1970
From: Gregor Zattler <telegraph@gmx.net>
Subject: SOLVED (was: Re: how to quote slashes in org-protocol string?)
Date: Sun, 16 Aug 2015 14:41:00 +0200
Message-ID: <20150816124100.GA8403@boo.workgroup>
References: <20150816092726.GA18678@boo.workgroup>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Return-path: <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org>
Received: from eggs.gnu.org ([2001:4830:134:3::10]:57213)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <error4me@gmx.de>) id 1ZQxFs-00019V-ES
	for emacs-orgmode@gnu.org; Sun, 16 Aug 2015 08:41:41 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <error4me@gmx.de>) id 1ZQxFp-0003Po-8b
	for emacs-orgmode@gnu.org; Sun, 16 Aug 2015 08:41:40 -0400
Received: from mout.gmx.net ([212.227.17.20]:61978)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <error4me@gmx.de>) id 1ZQxFo-0003Oi-Us
	for emacs-orgmode@gnu.org; Sun, 16 Aug 2015 08:41:37 -0400
Received: from boo.workgroup ([87.185.165.26]) by mail.gmx.com (mrgmx103) with
	ESMTPSA (Nemesis) id 0Lskr7-1YlPGT0SQj-012FST for
	<emacs-orgmode@gnu.org>; Sun, 16 Aug 2015 14:41:36 +0200
Content-Disposition: inline
In-Reply-To: <20150816092726.GA18678@boo.workgroup>
List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=subscribe>
Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org
Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org
To: emacs-orgmode <emacs-orgmode@gnu.org>

Dear org-mode users and developers,
* Gregor Zattler <telegraph@gmx.net> [16. Aug. 2015]:
> how do I quote slashes ("/") in TITLE or BODY in org-protocol
> string?

Answer: urlencode them as explained in
https://en.wikipedia.org/wiki/Percent-encoding

>      emacsclient org-protocol:/capture:/x/URL/TITLE/BODY
> 
> I capture emails from mutt (mail user agent) to org-mode via mutt
> macros and bash scripts.  Now I get errors in Emacs „Greedy
> org-protocol handler.  Killing client.“ because TITLE (the
> Subject of the email) contains slashes.
> 
> I tried to quote the slashes with slashes but this chops of part
> of the TITLE.

A function to do so in bash can be found at:
http://stackoverflow.com/questions/296536/how-to-urlencode-data-for-curl-command


Ciao, Gregor
-- 
 -... --- .-. . -.. ..--.. ...-.-