On Thu, Jun 18, 2015 at 02:31:43AM -0400, Xu Wang wrote:
I have a message id with a % in it. When I run the following (the
message ID is not complete here to keep some anonymity)
mutt -e "set nm_query_type=threads" -f
'notmuch://?query=id:Z23B3X20.22Ba8%'
I receive:
failed to parse notmuch uri: notmuch://?query=id:Z23B3X20.22Ba8%
Using backslashes to escape the percentage sign does not seem to work.
It's URL, so you have to use proper encoding, see
https://en.wikipedia.org/wiki/Percent-encoding
Note that % has special meaning (it's prefix for %<hex>), I guess you
need %25 rather than %:
mutt -e "set nm_query_type=threads" -f
'notmuch://?query=id:Z23B3X20.22Ba8%25'
As a side note, shouldn't there be a non-zero exit code if fail
to parse?
Hmm... seems like a bug.
Karel
--
Karel Zak <kzak(a)redhat.com>
http://karelzak.blogspot.com