* how to quote slashes in org-protocol string?
@ 2015-08-16 9:27 Gregor Zattler
2015-08-16 12:41 ` SOLVED (was: Re: how to quote slashes in org-protocol string?) Gregor Zattler
0 siblings, 1 reply; 2+ messages in thread
From: Gregor Zattler @ 2015-08-16 9:27 UTC (permalink / raw)
To: emacs-orgmode
Dear org-mode users and developers,
how do I quote slashes ("/") in TITLE or BODY in org-protocol
string?
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.
Ciao, Gregor
--
-... --- .-. . -.. ..--.. ...-.-
^ permalink raw reply [flat|nested] 2+ messages in thread
* SOLVED (was: Re: how to quote slashes in org-protocol string?)
2015-08-16 9:27 how to quote slashes in org-protocol string? Gregor Zattler
@ 2015-08-16 12:41 ` Gregor Zattler
0 siblings, 0 replies; 2+ messages in thread
From: Gregor Zattler @ 2015-08-16 12:41 UTC (permalink / raw)
To: emacs-orgmode
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
--
-... --- .-. . -.. ..--.. ...-.-
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-08-16 12:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-16 9:27 how to quote slashes in org-protocol string? Gregor Zattler
2015-08-16 12:41 ` SOLVED (was: Re: how to quote slashes in org-protocol string?) Gregor Zattler
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.