diff options
author | Robin Jarry <robin@jarry.cc> | 2023-11-11 20:36:39 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-11-12 12:53:11 +0100 |
commit | 213d65d00fb963c42cb3fa2b9b21c1613ec316a2 (patch) | |
tree | 5c85658abc6874176d9ed7fb780117da3d005d7b /lib/xoauth2.go | |
parent | cf00d0b55f29929d0c5996026d770067d4b26aa8 (diff) | |
download | aerc-213d65d00fb963c42cb3fa2b9b21c1613ec316a2.tar.gz |
cf: fix over quoting of notmuch queries
Currently, :cf thread:\{id:{{.MessageId}}\} is broken because it is
quoted before being interpreted by notmuch. The dynamic folder is
created with this "query" (including the quotes):
'thread:{id:23627381....}'
Notmuch queries use the xapian syntax and do not follow basic shell
quotes interpretation.
Change :cf only argument to preserve the command line as entered by the
user without any interpretation. When the backend is notmuch, forward
that as the dynamic folder name.
For other backends, interpret shell quoting on the user entry and fail
if it produces more than one argument.
Link: https://xapian.org/docs/queryparser.html
Fixes: 6613d9b555be ("cf: fix unexpected argument on notmuch")
Reported-by: Inwit <inwit@sindominio.net>
Signed-off-by: Robin Jarry <robin@jarry.cc>
Tested-by: Inwit <inwit@sindominio.net>
Diffstat (limited to 'lib/xoauth2.go')
0 files changed, 0 insertions, 0 deletions