emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Gregor Zattler <telegraph@gmx.net>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: SOLVED (was: Re: how to quote slashes in org-protocol string?)
Date: Sun, 16 Aug 2015 14:41:00 +0200	[thread overview]
Message-ID: <20150816124100.GA8403@boo.workgroup> (raw)
In-Reply-To: <20150816092726.GA18678@boo.workgroup>

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
-- 
 -... --- .-. . -.. ..--.. ...-.-

      reply	other threads:[~2015-08-16 12:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-16  9:27 how to quote slashes in org-protocol string? Gregor Zattler
2015-08-16 12:41 ` Gregor Zattler [this message]

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.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150816124100.GA8403@boo.workgroup \
    --to=telegraph@gmx.net \
    --cc=emacs-orgmode@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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).