From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gregor Zattler 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: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57213) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) 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 ) 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 ) 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 ; 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." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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 Dear org-mode users and developers, * Gregor Zattler [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 -- -... --- .-. . -.. ..--.. ...-.-